Created
August 9, 2019 13:37
-
-
Save pioz/d1447c381cb29e13806fade41f62f147 to your computer and use it in GitHub Desktop.
Animate background gradient
This file contains hidden or 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
| background: linear-gradient(235deg, #ff8a00, #da1b60); | |
| background-size: 400% 400%; | |
| -webkit-animation: animateBackgroundGradient 20s ease infinite; | |
| -moz-animation: animateBackgroundGradient 20s ease infinite; | |
| animation: animateBackgroundGradient 20s ease infinite; | |
| @-webkit-keyframes animateBackgroundGradient { | |
| 0%{background-position:0% 50%} | |
| 50%{background-position:100% 50%} | |
| 100%{background-position:0% 50%} | |
| } | |
| @-moz-keyframes animateBackgroundGradient { | |
| 0%{background-position:0% 50%} | |
| 50%{background-position:100% 50%} | |
| 100%{background-position:0% 50%} | |
| } | |
| @keyframes animateBackgroundGradient { | |
| 0%{background-position:0% 50%} | |
| 50%{background-position:100% 50%} | |
| 100%{background-position:0% 50%} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment