Skip to content

Instantly share code, notes, and snippets.

@maxw3st
Forked from chriscoyier/dabblet.css
Created May 8, 2012 22:17
Show Gist options
  • Save maxw3st/2639880 to your computer and use it in GitHub Desktop.
Save maxw3st/2639880 to your computer and use it in GitHub Desktop.
Fake animated pseudo
/**
* Fake animated pseudo
*/
div {
width: 200px;
padding: 10px;
position: relative;
background: red;
background-clip: content-box;
animation: bounce infinite alternate 0.5s;
}
div:after {
content: "";
position: absolute;
width: 0;
height: 0;
border-top: 8px solid transparent;
border-bottom: 20px solid transparent;
border-left: 15px solid red;
left: 100%;
top: 20px;
transform: rotate(360deg);
}
@keyframes bounce {
0% {
padding-right: 0px;
}
100% {
padding-right: 10px;
}
}
<div>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</div>
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment