animation.css 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. .animation-translation{
  2. animation:move 500ms infinite;
  3. -moz-animation:move 500ms infinite; /* Firefox */
  4. -webkit-animation:move 500ms infinite; /* Safari and Chrome */
  5. -o-animation:move 500ms infinite;/* Opera */
  6. }
  7. @keyframes move
  8. {
  9. from {top:0;}
  10. to {top:-50px;}
  11. }
  12. @-moz-keyframes move /* Firefox */
  13. {
  14. from {top:0;}
  15. to {top:-50px;}
  16. }
  17. @-webkit-keyframes move /* Safari and Chrome */
  18. {
  19. from {top:0;}
  20. to {top:-50px;}
  21. }
  22. @-o-keyframes move /* Opera */
  23. {
  24. from {top:0;}
  25. to {top:-50px;}
  26. }
  27. .translationRtoL{
  28. animation:moveRtoL 500ms 1;
  29. -moz-animation:moveRtoL 500ms 1; /* Firefox */
  30. -webkit-animation:moveRtoL 500ms 1; /* Safari and Chrome */
  31. -o-animation:moveRtoL 500ms 1;/* Opera */
  32. }
  33. @keyframes moveRtoL { from {left:0;} to {left:-50px;} }
  34. @-moz-keyframes moveRtoL { from {left:0;} to {left:-50px;} }
  35. @-webkit-keyframes moveRtoL { from {left:0;} to {left:-50px;} }
  36. @-o-keyframes moveRtoL { from {left:0;} to {left:-50px;} }
  37. .translationLtoR{
  38. animation:moveLtoR 500ms 1;
  39. -moz-animation:moveLtoR 500ms 1; /* Firefox */
  40. -webkit-animation:moveLtoR 500ms 1; /* Safari and Chrome */
  41. -o-animation:moveLtoR 500ms 1;/* Opera */
  42. }
  43. @keyframes moveLtoR { from {right:0;} to {right:-50px;} }
  44. @-moz-keyframes moveLtoR { from {right:0;} to {right:-50px;} }
  45. @-webkit-keyframes moveLtoR { from {right:0;} to {right:-50px;} }
  46. @-o-keyframes moveLtoR { from {right:0;} to {right:-50px;} }