Faire bouger une balise div en css3
chrecks
-
bruno -
bruno -
Bonjour, est-il possible de faire bouger une image en css3 sans utiliser hover comme déclencheur faire une rotation 3d autour d 'un axe Y en continue au démarrage de la page
2 réponses
-
SALUT
non il faut mettre du js essaye d adapter ca !
demo
a telecharger ici http://fredhq.com/projects/roundabout#/demos !
a+ -
Salut,
Voici un exemple (uniquement webkit):
<html> <head> <style type="text/css"> #demo{ width:404px; height:397px; position:absolute; top:100px; left:100px; background:url('http://www.innerauto.com/includes/images/Inner_Auto/Ford_Parts/new_Ford_images_by_carlo/wheel1.jpg'); -webkit-animation-name: rotate; -webkit-animation-duration: 10s; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: linear; } @-webkit-keyframes rotate { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } } </style> </head> <body> <div id="demo"> </div> </body> </html>