-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanimateCarousel.css
More file actions
76 lines (67 loc) · 1.25 KB
/
animateCarousel.css
File metadata and controls
76 lines (67 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.container {
position: relative;
width: 100%;
height: 300px;
border-bottom: 5px solid #61cccf;
overflow: hidden;
}
/* Background image styles */
.background-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('');
background-size: cover;
background-position: center;
filter: blur(10px);
z-index: -1;
}
.text-container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.changing-text {
font-size: 40px;
font-weight: bold;
color: #fff;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
/* Add CSS styles to animate the image carousel with fading effect */
.image-container {
display: flex;
overflow: hidden;
position: relative;
width: 100%;
height: 500px;
}
.image-container img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
filter: blur(5px);
opacity: 0;
z-index: -1;
transition: opacity 1s ease-in-out;
}
.image-container img.active {
opacity: 1;
animation: none;
}
@keyframes fadeInOut {
0%,
100% {
opacity: 0;
}
25%,
75% {
opacity: 1;
}
}