-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprac.css
More file actions
80 lines (69 loc) · 1.61 KB
/
prac.css
File metadata and controls
80 lines (69 loc) · 1.61 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
77
78
79
80
/* Carousel container */
#carouselExampleIndicators {
width: 100%;
max-width: 800px; /* Adjust max width */
margin: auto; /* Center carousel */
}
/* Ensure images fill the container */
.carousel-inner {
width: 100%;
max-height: 500px; /* Adjust height */
overflow: hidden;
}
.carousel-item img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 10px;
transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}
/* Fade effect on slide transition */
.carousel-item {
opacity: 0;
transition: opacity 1s ease-in-out;
}
.carousel-item.active {
opacity: 1;
}
/* Zoom-in effect on active slide */
.carousel-item.active img {
transform: scale(1.05);
}
/* Navigation controls */
.carousel-control-prev,
.carousel-control-next {
filter: invert(100%);
opacity: 0.7;
transition: opacity 0.3s ease-in-out;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
opacity: 1;
}
/* Indicators */
.carousel-indicators li {
background-color: #fff;
width: 10px;
height: 10px;
border-radius: 50%;
opacity: 0.5;
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.carousel-indicators .active {
opacity: 1;
background-color: #007bff;
transform: scale(1.2);
}
/* Caption Animation */
.carousel-caption {
background: rgba(0, 0, 0, 0.5);
padding: 10px;
border-radius: 5px;
opacity: 0;
transform: translateY(20px);
transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}
.carousel-item.active .carousel-caption {
opacity: 1;
transform: translateY(0);
}