Advertisement
doitliketyler

Sass Animated Waves

Jan 21st, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. // Waves
  2. @-moz-keyframes waves {
  3. 0% { left: 0 }
  4. 100% { left: -1400px }
  5. }
  6. @-webkit-keyframes waves {
  7. 0% { left: 0 }
  8. 100% { left: -1400px }
  9. }
  10. @keyframes waves {
  11. 0% { left: 0 }
  12. 100% { left: -1400px }
  13. }
  14. .waves {
  15. bottom: 0;
  16. height: 122px;
  17. left: 0;
  18. position: relative;
  19. width: 100%;
  20. z-index: 0;
  21. .wave {
  22. background-repeat: repeat-x;
  23. height: 122px;
  24. position: absolute;
  25. width: 7000px;
  26. }
  27. .wave-top {
  28. background-image: url('img/wave-top.png');
  29. animation: waves 26s infinite linear;
  30. -moz-animation: waves 26s infinite linear;
  31. -webkit-animation: waves 26s infinite linear;
  32. }
  33. .wave-mid {
  34. background-image: url('img/wave-mid.png');
  35. animation: waves 21s infinite linear;
  36. -moz-animation: waves 21s infinite linear;
  37. -webkit-animation: waves 21s infinite linear;
  38. }
  39. .wave-bot {
  40. background-image: url('img/wave-bot.png');
  41. animation: waves 16s infinite linear;
  42. -moz-animation: waves 16s infinite linear;
  43. -webkit-animation: waves 16s infinite linear;
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement