T
I
T
L
E
Jazz up your website with a bit of animation!
If you use the CSS animation property it's super easy to create some eye-catching effects. In the example above, the boxes rotate to the right side within a certain time.
For each alphabet create a div element and put a unique id on it. The CSS animation property defines the duration of the animation:
animation:
[name of the animation] [duration in seconds s] [timing] [frequency] [how the animation should be played][effect of the animation on the element after the animation].
You need to put the prefix -webkit- in front of animation in order to display it in all browsers.
After you have decided the duration of the animation you need to set the details of it. What kind of changes do you want to apply on the element? Does the color, width or size etc. change? @keyframes enables you to make the change. In the example above, I want to change the angle of the div boxes from 315 to 360 degrees. Here are the details of the syntax:
@keyframe rotate45(name of animation){
from{ transform:rotate(315deg);}
to{ transform:rotate(360deg);}
}
And finito!
If you use the CSS animation property it's super easy to create some eye-catching effects. In the example above, the boxes rotate to the right side within a certain time.
For each alphabet create a div element and put a unique id on it. The CSS animation property defines the duration of the animation:
animation:
[name of the animation] [duration in seconds s] [timing] [frequency] [how the animation should be played][effect of the animation on the element after the animation].
You need to put the prefix -webkit- in front of animation in order to display it in all browsers.
After you have decided the duration of the animation you need to set the details of it. What kind of changes do you want to apply on the element? Does the color, width or size etc. change? @keyframes enables you to make the change. In the example above, I want to change the angle of the div boxes from 315 to 360 degrees. Here are the details of the syntax:
@keyframe rotate45(name of animation){
from{ transform:rotate(315deg);}
to{ transform:rotate(360deg);}
}
And finito!