Forked from GradientAnimator/mentor-animation-1660940437327-820.css
Created
August 19, 2022 22:52
-
-
Save LexSander/63f8d44e0e98d3ffd99a8fc47d1cecf5 to your computer and use it in GitHub Desktop.
CSS Gradient Animation
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
| .css-selector { | |
| background: linear-gradient(303deg, #152614, #1e441e, #2a7221, #119822, #31cb00); | |
| background-size: 1000% 1000%; | |
| -webkit-animation: mentor-animation 5s ease infinite; | |
| -moz-animation: mentor-animation 5s ease infinite; | |
| -o-animation: mentor-animation 5s ease infinite; | |
| animation: mentor-animation 5s ease infinite; | |
| } | |
| @-webkit-keyframes mentor-animation { | |
| 0%{background-position:0% 49%} | |
| 50%{background-position:100% 52%} | |
| 100%{background-position:0% 49%} | |
| } | |
| @-moz-keyframes mentor-animation { | |
| 0%{background-position:0% 49%} | |
| 50%{background-position:100% 52%} | |
| 100%{background-position:0% 49%} | |
| } | |
| @-o-keyframes mentor-animation { | |
| 0%{background-position:0% 49%} | |
| 50%{background-position:100% 52%} | |
| 100%{background-position:0% 49%} | |
| } | |
| @keyframes mentor-animation { | |
| 0%{background-position:0% 49%} | |
| 50%{background-position:100% 52%} | |
| 100%{background-position:0% 49%} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment