Advertisement
GIFCITY

squiggle on hover link

Nov 19th, 2023
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <style>
  2. a {
  3. background: linear-gradient(to bottom, #000 0%, #000 100%);
  4. background-position: 0 95%;
  5. background-repeat: repeat-x;
  6. background-size: 5px 5px;
  7. text-decoration: none;
  8. }
  9.  
  10. a:hover {
  11. 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");
  12. background-position: 0 115%;
  13. background-size: 1em .5em;
  14. background-repeat: repeat-x;
  15. text-decoration: none;
  16. }
  17. </style>
  18. <a href="URL">text</a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement