Custom directive to glitch any DOM element. Should not be used on components.
Remarks
This directive is NOT compatible with v-if. If you are using v-if and v-glitch on the same component, you will encounter issues.
Use GlitchedElement if you need to glitch an element which glitches.
Example
Use v-glitch on any DOM element (span, div, img, ..)
This will <spanv-glitch>glitch</span>
Example
NEVER use v-glitch on an element with v-if
<!-- Do NOT do this --> This will NOT <spanv-glitchv-if="...">glitch</span> correctly
Custom directive to glitch any DOM element. Should not be used on components.
Remarks
This directive is NOT compatible with v-if. If you are using v-if and v-glitch on the same component, you will encounter issues. Use GlitchedElement if you need to glitch an element which glitches.
Example
Use v-glitch on any DOM element (span, div, img, ..)
Example
NEVER use v-glitch on an element with v-if