A Pen by GravityGrey on CodePen.
Created
October 28, 2018 02:54
-
-
Save Gravitygrey/3e885f436b1983ee26ae698e7dbb57ee to your computer and use it in GitHub Desktop.
Emo Culture
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
<h1>Emo Culture</h1> | |
<style> | |
body { | |
background-image: url("https://i.imgur.com/ZKvubAY.jpg"); | |
} | |
</style> | |
<section class="links"> | |
<a class="link opacity" href="https://discord.gg/Zah8WfZ">join us</a> | |
</section> |
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
var $slideLink = $("#slide-link"), | |
slideLinkText = $slideLink.find("span")[0]; | |
$slideLink.on("mouseenter", linkOver); | |
function linkOver() { | |
TweenLite.to(slideLinkText, 0.3, {y: -25, ease: Cubic.easeIn, onComplete: function() { | |
TweenLite.fromTo(slideLinkText, 0.3, {y: 25}, {y: 0, ease: Cubic.easeOut}) | |
}}); | |
} |
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
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.2/TweenLite.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/latest/plugins/CSSPlugin.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.2/easing/EasePack.min.js"></script> |
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
@import url(//codepen.io/team/codepen/pen/NxwJpr.css); | |
.links { | |
width: 90%; | |
margin: 0 auto; | |
} | |
.link { | |
display: inline-block; | |
vertical-align: top; | |
width: 100px; | |
height: 34px; | |
line-height: 36px; | |
text-transform: uppercase; | |
text-decoration: none; | |
color: #fff; | |
letter-spacing: 0.1em; | |
text-align: center; | |
font-size: 0.8rem; | |
margin: 10px; | |
position: relative; | |
span { | |
position: absolute; | |
height: 100%; | |
width: 100%; | |
top: 0; | |
left: 0; | |
text-align: center; | |
} | |
} | |
.opacity { | |
border: 2px solid #fff; | |
border-radius: 4px; | |
overflow: hidden; | |
} | |
.opacity { | |
transition: background-color 0.3s linear, color 0.3s linear; | |
background: #000000; | |
&:hover { | |
color: #000000; | |
background: #ffffff; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment