Last active
September 15, 2016 06:40
-
-
Save resistancecanyon/cb5c7bee9d583267e493f13dc95d0cc7 to your computer and use it in GitHub Desktop.
CSS 3 smooth blinking animation (Preview ) https://rawgit.com/resistancecanyon/cb5c7bee9d583267e493f13dc95d0cc7/raw/f84009ec449e133462c1d392e40fed2542b94c12/index.html
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> | |
<style> | |
@keyframes blink { | |
0% { color: white;background-color:white } | |
50% { color: white;background-color:green } | |
100% { color: white; background-color:green } | |
} | |
@-webkit-keyframes blink { | |
0% { color: black; } | |
100% { color: white; } | |
} | |
.blink { | |
-webkit-animation: blink 1s linear infinite; | |
-moz-animation: blink 1s linear infinite; | |
animation: blink 2s linear infinite; | |
padding:3px; | |
} | |
</style> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
This is <span class="blink">blink</span> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment