-
-
Save jalbertbowden/2841989 to your computer and use it in GitHub Desktop.
Fake animated pseudo
This file contains hidden or 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
/** | |
* 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; | |
} | |
} |
This file contains hidden or 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
<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> |
This file contains hidden or 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
{"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