Animation Name
The name of the animation must be unique.
The name should be used to name the keyframe @keyframes play--$ANIMATION-NAME { ... }
and the modifier class .animation--$ANIMATION-NAME {...}
Animation Steps
Number of frames in the animation sprite
Used to set the animations steps in css and to calculate the background-position offset in the animations keyframes:
background-position: calc($ANIMATION-WIDTH px * $ANIMATION-STEPS * -1)
and: animation: play--$ANIMATION-NAME $ANIMATION-DURATION s steps($ANIMATION-STEPS) infinite;
Animation Frame Width
Animation Duration
The duration of one animation loop
Used here: animation: play--$ANIMATION-NAME $ANIMATION-DURATION s steps($ANIMATION-STEPS) infinite;
Animation Sprite URL
The absolute path to a png or svg sprite that should be animated
Used here: <div class='animation animation--$ANIMATION-NAME' style='background: url('$ANIMATION-SPRITE-URL') left center; margin: auto;'>