invaderzim

bounce animation

Dec 30th, 2021 (edited)
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.24 KB | None | 0 0
  1. <style>
  2. @keyframes bounce {
  3. 0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  4. 40% {transform: translateY(-30px);}
  5. 60% {transform: translateY(-15px);}
  6. }
  7. #bounce {
  8. animation: bounce 1.5s infinite;
  9. }
  10. </style>
  11.  
  12. <div id="bounce">text</div>
Add Comment
Please, Sign In to add comment