334 lines
7.0 KiB
HTML
334 lines
7.0 KiB
HTML
<style>
|
|
.slide1r-container {
|
|
margin: 0 auto;
|
|
max-width: 1000px;
|
|
width: 100%;
|
|
position: relative;
|
|
border-radius: 20px;
|
|
padding: 25px;
|
|
font-family: 'Arial', sans-serif;
|
|
}
|
|
|
|
.slide1r-wrapper {
|
|
overflow: hidden;
|
|
border-radius: 16px;
|
|
position: relative;
|
|
}
|
|
|
|
.slide1r-track {
|
|
display: flex;
|
|
transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.slide1 {
|
|
min-width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.slide1-box {
|
|
display: flex;
|
|
gap: 25px;
|
|
width: 100%;
|
|
height: 300px;
|
|
}
|
|
|
|
.image-container {
|
|
flex: 1;
|
|
height: 100%;
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-radius: 16px;
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.image-container:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
|
|
}
|
|
|
|
.slide1-box img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.4s ease;
|
|
opacity: 0;
|
|
animation: fadeIn 0.5s ease forwards;
|
|
}
|
|
|
|
.image-container:hover img {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
/* Image overlays */
|
|
.image-overlay {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
|
|
color: white;
|
|
padding: 20px;
|
|
transform: translateY(100%);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.image-container:hover .image-overlay {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.image-overlay h4 {
|
|
margin: 0 0 5px 0;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.image-overlay p {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* Navigation buttons */
|
|
.nav-button {
|
|
position: absolute;
|
|
outline: solid rgba(166, 166, 166, 0.485) 1px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: rgba(255, 255, 255, 0.95);
|
|
backdrop-filter: blur(10px);
|
|
border: none;
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 20px;
|
|
color: #333;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
z-index: 10;
|
|
}
|
|
|
|
.nav-button:hover {
|
|
background: white;
|
|
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.prev-btn {
|
|
left: -50px;
|
|
}
|
|
|
|
.next-btn {
|
|
right: -50px;
|
|
}
|
|
|
|
.nav-button::before {
|
|
content: '';
|
|
width: 12px;
|
|
height: 12px;
|
|
border-top: 2.5px solid currentColor;
|
|
border-right: 2.5px solid currentColor;
|
|
}
|
|
|
|
.prev-btn::before {
|
|
transform: rotate(-135deg);
|
|
margin-left: 3px;
|
|
}
|
|
|
|
.next-btn::before {
|
|
transform: rotate(45deg);
|
|
margin-right: 3px;
|
|
}
|
|
|
|
/* Dots */
|
|
.dots-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
margin-top: 25px;
|
|
}
|
|
|
|
.dot {
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
background: #e0e0e0;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.dot.active {
|
|
background: #667eea;
|
|
transform: scale(1.3);
|
|
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
|
|
}
|
|
|
|
.dot:hover:not(.active) {
|
|
background: #bbb;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
/* Mobile responsive */
|
|
@media (max-width: 768px) {
|
|
.slide1r-container {
|
|
margin: 15px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.slide1-box {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
height: auto;
|
|
}
|
|
|
|
.image-container {
|
|
height: 250px;
|
|
}
|
|
|
|
.nav-button {
|
|
width: 50px;
|
|
height: 50px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.prev-btn {
|
|
left: -20px;
|
|
}
|
|
|
|
.next-btn {
|
|
right: -20px;
|
|
}
|
|
|
|
.image-overlay {
|
|
padding: 15px;
|
|
}
|
|
|
|
.image-overlay h4 {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.image-overlay p {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.slide1r-container {
|
|
padding: 15px;
|
|
}
|
|
|
|
.slide1-box {
|
|
gap: 12px;
|
|
padding: 5px;
|
|
}
|
|
|
|
.image-container {
|
|
height: 200px;
|
|
}
|
|
|
|
.nav-button {
|
|
width: 45px;
|
|
height: 45px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.prev-btn {
|
|
left: -15px;
|
|
}
|
|
|
|
.next-btn {
|
|
right: -15px;
|
|
}
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<div class="slide1r-container">
|
|
<div class="slide1r-wrapper">
|
|
<div class="slide1r-track" id="slide1rTrack">
|
|
<!-- Slide 1 -->
|
|
<div class="slide1">
|
|
<div class="slide1-box">
|
|
<div class="image-container">
|
|
<img
|
|
src="https://images.unsplash.com/photo-1557804506-669a67965ba0?w=500&h=400&fit=crop&crop=entropy&cs=tinysrgb"
|
|
alt="Business Meeting">
|
|
<div class="image-overlay">
|
|
<h4>Business Innovation</h4>
|
|
<p>Modern workspace collaboration</p>
|
|
</div>
|
|
</div>
|
|
<div class="image-container">
|
|
<img
|
|
src="https://images.unsplash.com/photo-1542744094-24638eff58bb?w=500&h=400&fit=crop&crop=entropy&cs=tinysrgb"
|
|
alt="Architecture">
|
|
<div class="image-overlay">
|
|
<h4>Modern Architecture</h4>
|
|
<p>Contemporary design solutions</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Slide 2 -->
|
|
<div class="slide1">
|
|
<div class="slide1-box">
|
|
<div class="image-container">
|
|
<img
|
|
src="https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=500&h=400&fit=crop&crop=entropy&cs=tinysrgb"
|
|
alt="Analytics">
|
|
<div class="image-overlay">
|
|
<h4>Data Analytics</h4>
|
|
<p>Business intelligence insights</p>
|
|
</div>
|
|
</div>
|
|
<div class="image-container">
|
|
<img
|
|
src="https://images.unsplash.com/photo-1551434678-e076c223a692?w=500&h=400&fit=crop&crop=entropy&cs=tinysrgb"
|
|
alt="Technology">
|
|
<div class="image-overlay">
|
|
<h4>Technology Hub</h4>
|
|
<p>Innovation and development</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Slide 3 -->
|
|
<div class="slide1">
|
|
<div class="slide1-box">
|
|
<div class="image-container">
|
|
<img
|
|
src="https://images.unsplash.com/photo-1503023345310-bd7c1de61c7d?w=500&h=400&fit=crop&crop=entropy&cs=tinysrgb"
|
|
alt="Creativity">
|
|
<div class="image-overlay">
|
|
<h4>Creative Space</h4>
|
|
<p>Inspiration and expression</p>
|
|
</div>
|
|
</div>
|
|
<div class="image-container">
|
|
<img
|
|
src="https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=500&h=400&fit=crop&crop=entropy&cs=tinysrgb"
|
|
alt="Beach">
|
|
<div class="image-overlay">
|
|
<h4>Tropical Paradise</h4>
|
|
<p>Natural beauty and relaxation</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<button class="nav-button prev-btn" id="prevBtn" aria-label="Previous slide"></button>
|
|
<button class="nav-button next-btn" id="nextBtn" aria-label="Next slide"></button>
|
|
</div> |