A Pen by Geoff Graham on CodePen.
Created
September 24, 2018 04:54
-
-
Save CodeMyUI/8740b827c12c3c6e84de2eefb9308cfb to your computer and use it in GitHub Desktop.
Link Effectz - Squiggle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>Flapjacks on a <a href="#">sunny warm</a> afternoon.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: https://theoutline.com/post/5970/unconventional-wisdom-emotional-readiness-is-bullshit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--mainColor: #ff9800; | |
} | |
body { | |
align-items: center; | |
display: flex; | |
font-family: 'Montserrat', sans-serif; | |
font-size: 2em; | |
height: 100vh; | |
justify-content: center; | |
} | |
a { | |
background: linear-gradient(to bottom, var(--mainColor) 0%, var(--mainColor) 100%); | |
background-position: 0 100%; | |
background-repeat: repeat-x; | |
background-size: 3px 3px; | |
color: #000; | |
text-decoration: none; | |
} | |
a:hover { | |
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='%23ff9800' stroke-width='2' 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"); | |
background-position: 0 100%; | |
background-size: auto 6px; | |
background-repeat: repeat-x; | |
text-decoration: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment