-
Notifications
You must be signed in to change notification settings - Fork 835
/
styles.css
20 lines (18 loc) · 853 Bytes
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Define keyframes for gradient animation */
@keyframes gradient-animation {
0% { background-position: 0% 50%; } /* Start position */
50% { background-position: 100% 50%; } /* Middle position */
100% { background-position: 0% 50%; } /* End position (same as start) */
}
/* Gradient animation on hover */
.animate-gradient:hover {
animation: gradient-animation 3s ease infinite; /* Apply the animation */
background-size: 200% 200%; /* Increase background size for smoother animation */
}
/* Animated gradient border */
.animate-gradient-border {
/* Create a multi-color gradient background */
background: linear-gradient(60deg, #3b82f6, #8b5cf6, #ef4444, #3b82f6);
background-size: 300% 300%; /* Increase background size for smoother animation */
animation: gradient-animation 5s ease infinite; /* Apply the animation */
}