Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feliciaceballos/8971704f5b6a653c610dcb48178470fc to your computer and use it in GitHub Desktop.
Save feliciaceballos/8971704f5b6a653c610dcb48178470fc to your computer and use it in GitHub Desktop.
Create Aurora Borealis Effect with CSS Animation
.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