@tasteink/glitch-styles
v0.0.5-development
Published
Easily add glitch effects to your app.
Downloads
27
Readme
NOTE: Not ready for usage yet. Hang tight.
- Install it.
yarn add @tasteink/glitch-styles
- Add the following CSS variables, tuned to your liking.
:root {
--glitch-vertical-offset-left: -0px;
--glitch-vertical-offset-right: 0px;
--glitch-left-width: -2px;
--glitch-right-width: 2px;
--glitch-color-0: #10f6be;
--glitch-color-1: #ff51ce;
--glitch-blur: 1px;
}
- Import the css file from
@tastink/glitch-styles
.
<link rel="stylesheet" href="/path/to/@tastink/glitch-styles.css" />
- Use the provided class names.
<div class="boxGlitch">...</div>
<p class="textGlitch">...</p>
- Get this kind of effect: