Advertisement
Carolaine_Vieira

Rotação

Nov 9th, 2015
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. >>>>>>> 1º Passo:
  2.  
  3. Colem esse código entre <style type="text/css"> e </style>
  4.  
  5. #teste{
  6.  
  7. margin-top:0px; /* quanto ela vai pra baixo */
  8. margin-left:0px; /* quanto ela vai pra direita */
  9. border-radius:100px; /* imagen circular igual a 100, imagem quadrada só é deixar em 0 */
  10. height:auto; /* altura da foto */
  11. width:200px; /* largura da foto */
  12. -webkit-transition: opacity 0.8s linear;
  13. -webkit-transition: all 0.5s ease;
  14. -moz-transition: all 0.5s ease;
  15. -o-transition: all 0.5s ease;
  16. -ms-transition: all 0.5s ease;
  17. transition: all 0.5s ease;
  18. }
  19.  
  20. #teste:hover {
  21. /* -360deg é quanto a foto vai girar, no nosso caso ela vai dar a volta inteira */
  22. -webkit-transform: rotate(-360deg);
  23. -moz-transform: rotate(-360deg);
  24. -o-transform: rotate(-360deg);
  25. -ms-transform: rotate(-360deg);
  26. transform: rotate(-360deg);
  27. -webkit-transition: all 0.5s ease;
  28. -moz-transition: all 0.5s ease;
  29. -o-transition: all 0.5s ease;
  30. -ms-transition: all 0.5s ease;
  31. transition: all 0.5s ease;
  32. }
  33.  
  34. >>>>>>> 2º Passo:
  35.  
  36. Colem esse código depois de </style> e antes de </body>
  37.  
  38. <img id="teste" src="URL da IMAGEM que vc quer">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement