Animation: I Am Vishal Kumar Tiwari - Web Designer (Trainee) Hi
Animation: I Am Vishal Kumar Tiwari - Web Designer (Trainee) Hi
Hi
I AM VISHAL KUMAR TIWARI
-Web designer (trainee)
Lets start with history :
While the pseudo-class :hover has been used to generate rudimentary
animations for years, extensions of CSS into the realm of animation were
minimal until the late 2000s decade
CSS animation has also been put forth as a feature of CSS3, the ongoing
draft specification managed by the World Wide Web Consortium (W3C).
Animation :-
It is used to control the elements by changing their motions or
display.
It has two parts, one which contains the CSS properties which
describes the animation of the elements
Initial and Inherit : initial sets it to default and inherit , inherit the
property from the parents
animation-duration :-
The animation-duration define how long animation should
take to complete on cycle
None:- Default value. Animation will not apply any styles to the element before or
after it is executing
Forwards:- The element will retain the style values that is set by the last keyframe
(depends on animation-direction and animation-iteration-count)
Backwards:- The element will get the style values that is set by the first
keyframe (depends on animation-direction), and retain this
during the animation-delay period
Both:- The animation will follow the rules for both forwards and backwards, extending
the animation properties in both directions
ease:- Default value. The animation has a slow start, then fast, before it
ends slowly
ease-in :- The animation has a slow start
ease-in-out :- The animation has both a slow start and a slow end
@keyframes mymove {
0% {top: 0px;}
25% {top: 200px;}
50% {top: 100px;}
75% {top: 200px;}
100% {top: 0px;}
}