Variable vGlitchConst

vGlitch: Directive<HTMLElement, RecursivePartial<PowerGlitchOptions> | undefined> = ...

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 <span v-glitch>glitch</span>

Example

NEVER use v-glitch on an element with v-if

<!-- Do NOT do this -->
This will NOT <span v-glitch v-if="...">glitch</span> correctly

Generated using TypeDoc