GokuSon

bounce

Aug 30th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. @keyframes bounce{
  2. 0% {top: 30px;}
  3. 50% {top: 50px;}
  4. 100% {top: 30px;}
  5. }
  6. @-webkit-keyframes bounce {
  7. 0% {top: 30px;}
  8. 50% {top: 50px;}
  9. 100% {top: 30px;}}
  10.  
  11. .bounce-img-bg{
  12. top:10%;
  13. left:-2%;
  14. width:500%;
  15. height:500px;
  16. z-index: 3;
  17. padding:9px;
  18. position:fixed;
  19. animation: bounce 3.25s infinite;
  20. -o-animation: bounce 3.25s infinite;
  21. -moz-animation:bounce 3.25s infinite;
  22. -webkit-animation: bounce 3.25s infinite;
  23. }
  24.  
  25. .bounce-img{
  26. top:300px;
  27. padding:5px;
  28. width:250px;
  29. height:250%;
  30. }
  31.  
  32.  
  33.  
  34. [v PUT THIS IN STYLE OR AT THE VERY BOTTOMO! v]
  35.  
  36. <div class="bounce-img-bg"><span class="bounce-img"><img src=" IMG HERE " width ="850">
Advertisement
Add Comment
Please, Sign In to add comment