@hellouxpavel/cssanimation
Version:
A Powerful CSS Animation Library for Advanced Motion Design.
298 lines (264 loc) • 3.93 kB
CSS
.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) !important;
}
@media (prefers-reduced-motion: reduce) {
.cssanimation,
.cssanimation span {
animation: none !important;
transition: none !important;
}
}
: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;
}
/**
* Module: Shake
* Filename: ca__Shake.ca__fx-css
*/
.ca__fx-horizontalShake {
animation-name: horizontalShake;
animation-iteration-count: infinite;
}
@keyframes horizontalShake {
,
,
,
,
,
,
,
,
,
,
{
transform: translateX(5px);
}
,
,
,
,
,
,
,
,
,
,
{
transform: translateX(3px);
}
,
,
,
,
,
,
,
,
,
,
{
transform: translateX(-5px);
}
}
.ca__fx-verticalShake {
animation-name: verticalShake;
animation-iteration-count: infinite;
}
@keyframes verticalShake {
,
,
,
,
,
,
,
,
,
,
{
transform: translateY(5px);
}
,
,
,
,
,
,
,
,
,
,
{
transform: translateY(3px);
}
,
,
,
,
,
,
,
,
,
,
{
transform: translateY(-5px);
}
}
.ca__fx-madMax {
animation-name: madMax;
animation-iteration-count: infinite;
}
@keyframes madMax {
,
,
,
,
,
,
,
,
,
,
{
transform: translateY(5px) scale(1.ca__fx-1);
}
,
,
,
,
,
,
,
,
,
,
{
transform: translateY(3px) scale(0.ca__fx-8);
}
,
,
,
,
,
,
,
,
,
,
{
transform: translateY(-5px) scale(1.ca__fx-1);
}
}
.ca__fx-coolHorizontalShake {
animation-name: coolHorizontalShake;
animation-iteration-count: infinite;
}
@keyframes coolHorizontalShake {
,
,
,
,
,
{
transform: translateX(5px);
}
,
,
,
,
,
{
transform: translateX(3px);
}
,
,
,
,
,
{
transform: translateX(-5px);
}
}
.ca__fx-coolVerticalShake {
animation-name: coolVerticalShake;
animation-iteration-count: infinite;
}
@keyframes coolVerticalShake {
,
,
,
,
,
{
transform: translateY(5px);
}
,
,
,
,
,
{
transform: translateY(3px);
}
,
,
,
,
,
{
transform: translateY(-5px);
}
}
.ca__fx-quietMad {
animation-name: quietMad;
animation-iteration-count: infinite;
}
@keyframes quietMad {
,
,
,
,
,
{
transform: translateY(5px) scale(1.ca__fx-1);
}
,
,
,
,
,
{
transform: translateY(3px) scale(0.ca__fx-8);
}
,
,
,
,
,
{
transform: translateY(-5px) scale(1.ca__fx-1);
}
}
.ca__fx-vibration {
animation: vibration 0.ca__fx-1s linear infinite;
}
@keyframes vibration {
{
transform: skewY(1deg) skewX(-1deg) scale(1.ca__fx-06);
}
}