@hellouxpavel/cssanimation
Version:
A Powerful CSS Animation Library for Advanced Motion Design.
60 lines (51 loc) • 1.25 kB
CSS
/*!
* Module: neonGlow Animation
* Usage: <div class="cssanimation ca__fx-neonGlow">Your Content</div>
*/
/* stylelint-disable */
:root {
--cssanimation-duration: 1s;
--cssanimation-fill-mode: both;
--cssanimation-infinite: infinite;
--cssanimation-backface-visibility: hidden;
--cssanimation-transform-style: preserve-3d;
--cssanimation-will-change: transform, opacity;
--cssanimation-display: inline-block;
--move-distance: -800px;
}
.cssanimation {
animation-duration: var(--cssanimation-duration, 1s);
animation-fill-mode: var(--cssanimation-fill-mode, both);
}
.cssanimation span {
display: var(--cssanimation-display, inline-block);
}
.infinite {
animation-iteration-count: var(--cssanimation-infinite, infinite) ;
}
@media (prefers-reduced-motion: reduce) {
.cssanimation,
.cssanimation span {
animation: none ;
transition: none ;
}
}
/* stylelint-enable */
.ca__fx-neonGlow {
animation: neonGlow 1.5s ease-in-out infinite;
}
@keyframes neonGlow {
0%,
100% {
text-shadow:
0 0 5px #fff,
0 0 10px #f0f,
0 0 20px #f0f;
}
50% {
text-shadow:
0 0 10px #fff,
0 0 20px #0ff,
0 0 30px #0ff;
}
}