Informations :
Dates
- Publish : : Friday 10 july 2015
- Modification : Friday 10 july 2015
- 417 views
Share :
Je vous envoie l'adresse d'une page HTML o? se trouve une animation CSS autour du logo (pour se donner d'l'inspiration).
On y trouve la propri?t? CSS animation
:
-
Que l'on d?clare gr?ce ?
@keyframes
:Script avec 14 lignes
001
@-webkit-keyframes turn_clockwise {
0020% { -webkit-transform:rotate(0deg) }
003100% { -webkit-transform:rotate(360deg) }
004}
005 006@-moz-keyframes turn_clockwise{
0070% { -moz-transform:rotate(0deg) }
008100% { -moz-transform:rotate(360deg) }
009}
010 011@keyframes turn_clockwise{
0120% { transform:rotate(0deg) }
013100% { transform:rotate(360deg) }
014}
-
Et on appelle notre animation
turn_clockwise
:Script avec 3 lignes
001
-webkit-animation: turn_clockwise 8s infinite;
002-moz-animation: turn_clockwise 8s infinite;
003animation: turn_clockwise 8s infinite;
R?f?rences :
- CSS3 Create : Animer facilement en CSS toutes les propri?t?s
- W3C : CSS Transitions
- AlsaCr?ations : Transitions CSS3
- CSS3 Create : Enchainez les transitions !