animation-iteration-count property in CSS3

animation-iteration-count property is used to defines how many times an animation should be played. We can't use this property in the Internet Explorer and Opera.
Ex:
  1. <html>
  2. <head>
  3. <style type="text/css">
  4. div
  5. {
  6. width: 100px;
  7. height: 100px;
  8. background: pink;
  9. position: relative;
  10. animation: mycssmove 5s;
  11. animation-iteration-count: 5;
  12. /* Safari and Google Chrome */
  13. -webkit-animation: mycssmove 5s;
  14. -webkit-animation-iteration-count: 5;
  15. }
  16. /* Mozilla Firefox */
  17. -moz-animation:mycssmove 5s;
  18. -moz-animation-iteration-count:5;
  19. @keyframes mycssmove
  20. {
  21. from
  22. {
  23. top: 0px;
  24. }
  25. to
  26. {
  27. top: 100px;
  28. }
  29. }
  30. @-webkit-keyframes mycssmove
  31. /* Google Chrome and Safari */
  32. {
  33. from
  34. {
  35. top: 0px;
  36. }
  37. to
  38. {
  39. top: 100px;
  40. }
  41. }
  42. @-moz-keyframes mycssmove
  43. /* Mozilla Firefox */
  44. {
  45. from
  46. {
  47. top: 0px;
  48. }
  49. to
  50. {
  51. top: 100px;
  52. }
  53. }
  54. </style>
  55. </head>
  56. <body>
  57. <div></div>
  58. </body>
  59. </html>
1.png