Skip to content

Instantly share code, notes, and snippets.

@Jonnysol
Last active November 7, 2020 03:37
Show Gist options
  • Save Jonnysol/0c5570b0212a07561e68934a5c7b4a85 to your computer and use it in GitHub Desktop.
Save Jonnysol/0c5570b0212a07561e68934a5c7b4a85 to your computer and use it in GitHub Desktop.
Impossibly Tipsy
<a class="" href="http://www.thismanslife.co.uk" target="_blank"> Flip Your Credit</a><a class="tag"> With C hall credit</a>
@keyframes tipsy {
0 {
transform: translateX(-50%) translateY(-50%) rotate(0deg);
}
100% {
transform: translateX(-50%) translateY(-50%) rotate(360deg);
}
}
.tipsy-body {
font-family: helvetica, arial, sans-serif;
background-color: #2e2e31;
}
.tipsy-tag {
color: #fffbf1;
text-shadow: 0 20px 25px #2e2e31, 0 40px 60px #2e2e31;
font-size: 20px;
font-weight: bold;
text-decoration: none;
letter-spacing: -3px;
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
}
.tipsy-a {
color: #fffbf1;
text-shadow: 0 20px 25px #2e2e31, 0 40px 60px #2e2e31;
font-size: 80px;
font-weight: bold;
text-decoration: none;
letter-spacing: -3px;
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
}
.tipsy-a:before,
.tipsy-a:after {
content: '';
padding: .9em .4em;
position: absolute;
left: 50%;
width: 100%;
top: 50%;
display: block;
border: 15px solid red;
transform: translateX(-50%) translateY(-50%) rotate(0deg);
animation: 10s infinite alternate ease-in-out tipsy;
}
.tipsy-a:before {
border-color: #d9524a #d9524a rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
z-index: -1;
}
.tipsy-a:after {
border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #d9524a #d9524a;
box-shadow: 25px 25px 25px rgba(46, 46, 49, .8);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment