Advertisement
Guest User

Squiggle link

a guest
Nov 29th, 2022
469
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 1 0
  1. <style>
  2. :root {
  3. --mainColor: #000;
  4. }
  5.  
  6. a {
  7. background: linear-gradient(to bottom, var(--mainColor) 0%, var(--mainColor) 100%);
  8. background-position: 0 95%;
  9. background-repeat: repeat-x;
  10. background-size: 5px 5px;
  11. text-decoration: none;
  12. }
  13.  
  14. a:hover {
  15. background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id='squiggle-link' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:ev='http://www.w3.org/2001/xml-events' viewBox='0 0 20 4'%3E%3Cstyle type='text/css'%3E.squiggle{animation:shift .3s linear infinite;}@keyframes shift {from {transform:translateX(0);}to {transform:translateX(-20px);}}%3C/style%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' class='squiggle' d='M0,3.5 c 5,0,5,-3,10,-3 s 5,3,10,3 c 5,0,5,-3,10,-3 s 5,3,10,3'/%3E%3C/svg%3E");
  16. background-position: 0 115%;
  17. background-size: 1em .5em;
  18. background-repeat: repeat-x;
  19. text-decoration: none;
  20. }
  21. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement