Animation background gradient effect.
Created
April 5, 2022 10:43
-
-
Save HMser/8e0cd9b14c2f62f6d50ce4737f1b938e to your computer and use it in GitHub Desktop.
Animated Background Gradient
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> |
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
$bgWidth: 10000px; | |
body { | |
background: linear-gradient(to right, #1e5799 0%,#2ce0bf 19%,#76dd2c 40%,#dba62b 60%,#e02cbf 83%,#1e5799 100%); | |
background-size: $bgWidth 100%; | |
animation: bg 15s linear infinite ; | |
} | |
@keyframes bg{ | |
0%{ | |
background-position-x: 0; | |
} | |
100%{ | |
background-position-x: $bgWidth; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment