Skip to content

Instantly share code, notes, and snippets.

Created January 14, 2015 17:53
Show Gist options
  • Save anonymous/415555b50216d851078b to your computer and use it in GitHub Desktop.
Save anonymous/415555b50216d851078b to your computer and use it in GitHub Desktop.
Logo Animation
<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Open+Sans:700'>
<a href="#">awerest</a>
<div class="sprite"></div>
body {
background: #bbbdc0;
font-family: 'Open Sans';
}
a {
left: 50%;
background: #fff;
color: #25272B;
font-weight: 700;
font-size: 18px;
text-transform: none;
text-decoration: none;
line-height: 1em;
letter-spacing: 7px;
border: 3px solid #fff;
border-radius: 2px;
padding: 2px 6px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
display: block;
position: relative;
overflow: hidden;
height: 30px;
width: 30px;
-webkit-transition: all 0.15s ease;
-moz-transition: all 0.15s ease;
transition: all 0.15s ease;
}
a:hover {
margin-left: -30px;
background: transparent;
color: #fff;
text-decoration: none;
letter-spacing: 0px;
border-radius: 0;
width: 90px;
-webkit-transition: all 0.35s ease, width 0.25s ease 0.1s, letter-spacing 0.1s ease 0.1s;
-moz-transition: all 0.35s ease, width 0.25s ease 0.1s, letter-spacing 0.1s ease 0.1s;
transition: all 0.35s ease, width 0.25s ease 0.1s, letter-spacing 0.1s ease 0.1s;
}
.sprite {
background: url('http://s18.postimg.org/tj8k0a5ol/main_logo.png') no-repeat 0 -55px;
width: 140px;
height: 21px;
-webkit-transition: all 0.15s ease;
-moz-transition: all 0.15s ease;
transition: all 0.15s ease;
}
.sprite:hover{
background:url('http://s18.postimg.org/tj8k0a5ol/main_logo.png') no-repeat 0 0;
width: 140px;
height: 76px;
-webkit-transition: all 0.35s ease, width 0.25s ease 0.1s, letter-spacing 0.1s ease 0.1s;
-moz-transition: all 0.35s ease, width 0.25s ease 0.1s, letter-spacing 0.1s ease 0.1s;
transition: all 0.35s ease, width 0.25s ease 0.1s, letter-spacing 0.1s ease 0.1s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment