Skip to content

Instantly share code, notes, and snippets.

@xiel
Created November 13, 2012 09:44
Show Gist options
  • Save xiel/4064923 to your computer and use it in GitHub Desktop.
Save xiel/4064923 to your computer and use it in GitHub Desktop.
Pseudo-Element Transition Webkit Bug
/*
Pseudo-Element Transition Webkit Bug
*/
a {
transition: 500ms;
position: relative;
border: 0 none;
border-radius: 5px;
padding: 10px 20px;
font: 16px/1 sans-serif;
line-height: 1em;
color: #fff;
background: #f26;
}
a:hover {
background: #dd0;
}
a:after {
position: absolute;
left: 50%;
margin-left: -10px;
bottom: -10px;
content: '';
border-style: solid;
border-width: 10px 10px 0 10px;
border-color: #f26 transparent;
display: block;
transition: 500ms;
}
a:hover:after {
border-color: #dd0 transparent;
}
body {
padding: 30px;
}
<a>Button with pseudo</a>
{"view":"split-vertical","fontsize":"110","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment