Last active
August 29, 2015 14:10
-
-
Save foolyoghurt/b28af7e4ec0bae7cac8d to your computer and use it in GitHub Desktop.
CSS Snippets
This file contains 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
/* animated ellipsis */ | |
.loading:after { | |
overflow: hidden; | |
display: inline-block; | |
vertical-align: bottom; | |
animation: ellipsis 2s infinite; | |
content: "\2026"; /* ascii code for the ellipsis character */ | |
} | |
@keyframes ellipsis { | |
from { | |
width: 2px; | |
} | |
to { | |
width: 15px; | |
} | |
} |
This file contains 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
.blurry-text { | |
color: transparent; | |
text-shadow: 0 0 5px rgba(0,0,0,0.5); | |
} |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<style> | |
.outer { | |
height: 100px; | |
widht: 100px; | |
} | |
.inner { | |
height: 50px; | |
width: 50px; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="outer"> | |
<div class="inner"></div> | |
<div class="inner"></div> | |
<div class="inner"></div> | |
</div> | |
</body> | |
<script> | |
[].forEach.call(document.querySelectorAll("*"), function(a) { | |
a.style.outline = "1px solid #" + (~~(Math.random() * (1 << 24))).toString(16); | |
}); | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment