Skip to content

Instantly share code, notes, and snippets.

Created August 8, 2014 16:35
Show Gist options
  • Save anonymous/a1507f7ab263377e5ccc to your computer and use it in GitHub Desktop.
Save anonymous/a1507f7ab263377e5ccc to your computer and use it in GitHub Desktop.
A Pen by Captain Anonymous.
<link href='http://lea.io/sortable-test/index_files/fira.min.css' rel='stylesheet' type='text/css'>
<div id="logo"><span>kntxt<span></div>
<style>
#logo {
-letter-kern: -5px -7px 5px 0 0;
}
</style>
$(function() { Kerning.live(); });
$size: 512px;
body {
margin: 20px auto;
width: $size;
}
#logo {
width: $size;
height: $size;
margin: 0;
padding: 0;
box-sizing: border-box;
position: relative;
//background: rgba(0,0,0,0.2);
text-align: center;
span {
position: relative;
height: 0;
margin: 0;
padding: 0;
top: 48%;
//margin-top: $size * -0.01;
margin-left: $size * 0.015;
font-family: 'Fira Sans', sans-serif;
font-weight: 100;
font-size: $size * 0.22;
letter-spacing: $size * 0.012;
text-align: center;
vertical-align: baseline;
line-height: 0%;
display: block;
color: white;
}
}
#logo:before {
transition: all 0.2s ease-out;
margin: 0;
padding: 0;
position: absolute;
width: sqrt(50%*50 + 50%*50);
height: sqrt(50%*50 + 50%*50);
transform: rotate(45deg);
top: sqrt(50%*50 + 50%*50) * 0.21;
left: sqrt(50%*50 + 50%*50) * 0.21;
content: '';
//background: #FF018D;
background-image: linear-gradient(to bottom right, #FF018D 10%, #FFA6C5 100%);
z-index: -1;
}
body:hover #logo {
transform: scale(0.5);
&:before {
transition: all 0.2s ease-out;
transform: rotate(90deg);
}
}
body #logo {
transition: all 0.2s linear;
transform: scale(1);
&:before {
transition: all 0.2s ease-out;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment