Assignment3_work_with_sliders/styles.css

102 lines
1.4 KiB
CSS
Raw Normal View History

/* General Reset */
* {
2024-12-30 06:22:29 +00:00
margin: 0;
padding: 0;
box-sizing: border-box;
2024-12-30 06:22:29 +00:00
}
body {
font-family: 'Roboto', sans-serif;
background: #f2f2f2;
2024-12-30 06:22:29 +00:00
}
/* Container for Swipers */
.container {
max-width: 1200px;
margin: 0 auto;
display: flex;
gap: 30px;
padding: 20px;
2024-12-30 06:22:29 +00:00
}
.image-swiper-container {
width: 60%;
2024-12-30 06:22:29 +00:00
}
.text-swiper-container {
width: 40%;
2024-12-30 06:22:29 +00:00
}
.image-swiper img {
width: 100%;
height: 400px;
object-fit: cover;
border-radius: 10px;
2024-12-30 06:22:29 +00:00
}
.text-content {
padding: 30px;
background: #f5f5f5;
height: 400px;
display: flex;
flex-direction: column;
justify-content: center;
border-radius: 10px;
2024-12-30 06:22:29 +00:00
}
.text-content h2 {
margin-bottom: 20px;
color: #333;
font-size: 24px;
2024-12-30 06:22:29 +00:00
}
.text-content p {
color: #666;
line-height: 1.6;
2024-12-30 06:22:29 +00:00
}
@media (max-width: 768px) {
.container {
flex-direction: column;
}
.image-swiper-container,
.text-swiper-container {
width: 100%;
}
2024-12-30 06:22:29 +00:00
}
/* Logos Section */
.logos {
width: 100%;
overflow: hidden;
padding: 40px 0;
background: white;
position: relative;
2024-12-30 06:22:29 +00:00
}
.logos-slide {
display: flex;
gap: 40px;
animation: scroll 30s linear infinite;
animation-play-state: running; /* Default state: running */
2024-12-30 06:22:29 +00:00
}
.logos-slide img {
height: 50px;
object-fit: contain;
transition: transform 0.3s ease;
}
2024-12-30 06:22:29 +00:00
.logos-slide img:hover {
transform: scale(1.1);
}
2024-12-30 06:22:29 +00:00
@keyframes scroll {
0% {
transform: translateX(0);
2024-12-30 06:22:29 +00:00
}
100% {
transform: translateX(-50%);
2024-12-30 06:22:29 +00:00
}
}