nyanyanyan

tilting text animation

Aug 21st, 2025
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. .tilted {
  2. /* NOTE: will look wonky if the text isn't centered.. */
  3. animation-name: tilting;
  4. animation-duration: 2s;
  5. animation-iteration-count: infinite;
  6. text-align: center;
  7. }
  8.  
  9. @keyframes tilting {
  10. 0% {
  11. transform: rotate(
  12. 5deg);
  13. }
  14. 50% {
  15. transform: rotate(
  16. -5deg);
  17. }
  18. 100% {
  19. transform: rotate(
  20. 5deg);
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment