Animations
FlatifyCSS comes with a couple of built-in CSS animations.
Generally, components use these animations to work as expected, however, you can use them as well!
Before starting on, it is necessary to learn about CSS animations, read more here.
Animations
All available animations are listed below by their names, you can set them to the element that you wish like this:
animation: my-animation-name ease 1s infinite;
Fade
flatify-fade-in
flatify-fade-in-out
flatify-backdrop-fade-in (Fade in - the final opacity is --flatify__backdrop-opacity)
flatify-fade-out
Scale
flatify-grow
flatify-grow-x
flatify-grow-y
flatify-blow-in
flatify-blow-out
flatify-heart
flatify-pulse
Rotation
flatify-spin
Movement
flatify-slide-up-in
flatify-slide-up-in-min
flatify-slide-up-out
flatify-slide-down-in
flatify-slide-down-out
flatify-slide-down-out-min
flatify-slide-left-in
flatify-slide-left-out
flatify-slide-left-in-min
flatify-slide-left-out-min
flatify-slide-right-in
flatify-slide-right-out
flatify-slide-right-in-min
flatify-slide-right-out-min
Filter
flatify-hue
flatify-hue-min
Misc
These animations are just special to their usecases:
flatify-processing The animation for progress bar processing state.
flatify-alert-will-be-removed
flatify-dropdown-show
flatify-dropdown-hide
flatify-eye-blink
flatify-loading-dot-first
flatify-loading-dot-second
flatify-loading-dot-third
Helper classes
It is possible to change the animation state with helper classes, for example, play, pause, or stop.
These are helper classes that you can use:
| Class | What it does |
|---|---|
.no-transition | Removes transitions of an element |
.no-animation | Removes animations of an element |
.play-animation | Plays the current animation |
.pause-animation | Pauses the current animation |
.stop-animation | Stops the animation |
Animation classes
Some predefined classes help you set animations directly:
| Class | Animation | Repeats |
|---|---|---|
.anim-hue | flatify-hue | infinite |
.anim-hue-min | flatify-hue-min | infinite |
.anim-spin | flatify-spin | infinite |
.anim-pulse | flatify-pulse | infinite |
.anim-heart | flatify-heart | infinite |
.anim-required | flatify-heart | two times |
.anim-fade-in | flatify-fade-in | one time |
.anim-fade-out | flatify-fade-out | one time |