Created
April 24, 2016 02:05
-
-
Save feliciaceballos/8971704f5b6a653c610dcb48178470fc to your computer and use it in GitHub Desktop.
Create Aurora Borealis Effect with CSS Animation
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
.aurora-borealis { | |
background: linear-gradient(#05051f, #05051f, #97f7f3, #05051f, #05051f, #05051f, #76f6bd, #aaebc9, #05051f, #05051f, #69c1ff, #cb304f, #05051f, #05051f, #05051f, #05051f, #4a5b8f, #419f91, #05051f, #05051f, #3a4aa1, #db3b69, #05051f); | |
background-size: 1800% 1800%; | |
-webkit-animation: Aurora 180s ease; | |
-moz-animation: Aurora 180s ease; | |
animation: Aurora 180s ease; | |
animation-iteration-count: 1; | |
} | |
@-webkit-keyframes Aurora { | |
0%{background-position:18% 0%} | |
50%{background-position:83% 100%} | |
100%{background-position:18% 0%} | |
} | |
@-moz-keyframes Aurora { | |
0%{background-position:18% 0%} | |
50%{background-position:83% 100%} | |
100%{background-position:18% 0%} | |
} | |
@keyframes Aurora { | |
0%{background-position:18% 0%} | |
50%{background-position:83% 100%} | |
100%{background-position:18% 0%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment