Vue text glitch
Vue text glitch component.
Getting started
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>
Features
- Animation is generated using Javascript
- Multiple different glitches on the same page
- Plug and play
Props
Vue Text Glitch
)
text (default The text that should be glitched.
20
)
steps (default Number of keyframes in the animation. 20 means there's a keyframe every 100/20 = 5%.
2
)
height (default The animation speed.
text-glitch
)
id (default This is a prefix for the animation and styles, so you can use multiple different glitches on the same page.
false
)
speed (default Whether or not to apply the error class
#2c3e50
)
fill (default The fill color.
#fff
)
background (default The background color.
red
)
highlight1 (default First highlight color.
blue
)
highlight2 (default Second highlight color.
Credit
- Effect and explanation: CSS Tricks