Vue text glitch component.
Pull in the package:
yarn add vue-text-glitch
Import the component:
import VueTextGlitch from 'vue-text-glitch'
export default {
components: {
VueTextGlitch
}
}
Use in your template:
<TextGlitch
text="Vue Text Glitch!"
></TextGlitch>
- Animation is generated using Javascript
- Multiple different glitches on the same page
- Plug and play
The text that should be glitched.
Number of keyframes in the animation. 20 means there's a keyframe every 100/20 = 5%.
The animation speed.
This is a prefix for the animation and styles, so you can use multiple different glitches on the same page.
Whether or not to apply the error class
The fill color.
The background color.
First highlight color.
Second highlight color.
- Effect and explanation: CSS Tricks