miitopias

candy-cane text

Nov 11th, 2021 (edited)
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. .candy {
  2. --color1: #1FD537;
  3. --color2: #E40010;
  4.  
  5. -webkit-text-stroke: 1px black;
  6. background: repeating-linear-gradient(
  7. 45deg,
  8. var(--color1),
  9. var(--color1) 30px,
  10. var(--color2) 30px,
  11. var(--color2) 60px
  12. );
  13. background-clip: text;
  14. color: transparent;
  15. -webkit-background-clip: text;
  16. font-size: 3em;
  17. animation: 40s linear 0s infinite move;
  18. }
  19.  
  20. @keyframes move {
  21. from {
  22. background-position: 0px;
  23. }
  24. to {
  25. background-position: 1000px;
  26. }
  27. }
Add Comment
Please, Sign In to add comment