CSS Gradient Animation
source link: https://gist.github.com/GradientAnimator/4092abc8598d8d96c8b85b5d6bf76759
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Instantly share code, notes, and snippets.
.css-selector { background: linear-gradient(211deg, #ffffff, #e83323); background-size: 400% 400%; -webkit-animation: AnimationName 0s ease infinite; -moz-animation: AnimationName 0s ease infinite; -o-animation: AnimationName 0s ease infinite; animation: AnimationName 0s ease infinite; } @-webkit-keyframes AnimationName { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} } @-moz-keyframes AnimationName { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} } @-o-keyframes AnimationName { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} } @keyframes AnimationName { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK