Created
May 13, 2020 16:33
-
-
Save doc22940/30eb2581c905c920626d8669384a9ace to your computer and use it in GitHub Desktop.
Day 2.5 Keyframes
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
<h1><span>K</span><span>e</span><span>y</span><span>f</span><span>r</span><span>a</span><span>m</span><span>e</span><span>s</span></h1> | |
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
// colors | |
$charcoal: #222831; | |
$darkblue: #393e46; | |
$lightblue: #00adb5; | |
$lightwhite: #eeeeee; | |
$yellow: #e8f044; | |
body{ | |
animation: dark 3s infinite; | |
font-family: 'Pacifico', cursive; | |
// color: $lightwhite; | |
color: #d6d6d6; | |
// background-color: $charcoal; | |
h1{ | |
margin-top: 80px; | |
text-align: center; | |
font-size:7rem; | |
padding: 10px; | |
span{ | |
&:nth-of-type(1){ | |
animation: changecolor 4s infinite; | |
} | |
&:nth-of-type(2){ | |
animation: changecolor 4s infinite; | |
animation-delay: 0.2s; | |
// color: $charcoal; | |
// text-shadow: 5px 5px 2px #FA057E; | |
} | |
&:nth-of-type(3){ | |
animation: changecolor 4s infinite; | |
animation-delay: 0.4s; | |
// color: $charcoal; | |
// text-shadow: 5px 5px 2px #FA057E; | |
} | |
&:nth-of-type(4){ | |
animation: changecolor 4s infinite; | |
animation-delay: 0.6s; | |
} | |
&:nth-of-type(5){ | |
animation: changecolor 4s infinite; | |
animation-delay: 0.8s; | |
} | |
&:nth-of-type(6){ | |
animation: changecolor 4s infinite; | |
animation-delay: 1s; | |
} | |
&:nth-of-type(7){ | |
animation: changecolor 4s infinite; | |
animation-delay: 1.2s; | |
} | |
&:nth-of-type(8){ | |
animation: changecolor 4s infinite; | |
animation-delay: 1.4s; | |
} | |
&:nth-of-type(9){ | |
animation: changecolor 4s infinite; | |
animation-delay: 1.6s; | |
} | |
} | |
} | |
} | |
@keyframes changecolor{ | |
25%{ | |
// text-shadow: 5px 4px 2px #ff5722; | |
text-shadow: 5px 4px 2px $lightblue; | |
} | |
75%{ | |
color: #efefef; | |
// text-shadow: 5px 4px 2px #dd2c00; | |
text-shadow: 5px 4px 2px $darkblue; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment