کد اسلایدر محصولات شماره ۲

Elemo Design
(بدون نظر)
رتبه 5 از 5
کد اسلایدر محصولات شماره 2

کد اسلایدر محصولات شماره ۲

کتابخانه‌های پیش‌نیاز:

  • اسلایدر سویپر (Swiper JS)
https://elemodesign.ir/code_live_demo/product-slider-loop-code-2/

طراحی حرفه‌ای با کد اسلایدر محصولات (Loop)

تصور کنید ویترین فروشگاه شما چنان جذابیتی دارد که مشتری نمی‌تواند بدون کلیک کردن از آن بگذرد. با استفاده از این کد اسلایدر محصولات که با استفاده از کتابخانه قدرتمند Swiper.js طراحی شده، محصولات شما به شکلی پویا و خیره‌کننده به نمایش در می‌آیند. این کد با انعطاف‌پذیری کامل در دسته‌بندی «حلقه‌ها و گرید»، به شما اجازه می‌دهد تا هر ویژگی خاصی از محصول را به صورت داینامیک نمایش دهید. همین حالا با این اسلایدر محصولات حرفه‌ای، تجربه کاربری سایتتان را متحول کرده و نرخ تبدیل فروش را به شکلی چشمگیر افزایش دهید؛ چون محصولاتی که بهتر دیده می‌شوند، سریع‌تر فروخته می‌شوند!

دیگر نیازی نیست ساعت‌ها وقت صرف کد نویسی کنید؛ با تهیه اشتراک VIP، این کد آماده جذاب اسلایدر محصولات را در چند ثانیه درون‌ریزی کنید و اولین قدم را برای یک طراحی خیره‌کننده محکم بردارید! 🚀

از سایت پارادایس پرامپت ما دیدن فرمایید. در اینجا می توانید از بهترین پرامپت های هوش مصنوعی استفاده کنید.

ارتباط پایدار و بدون مرز با المو دیزاین

برای دسترسی به آموزش‌های نایاب طراحی وب، کدهای اختصاصی و اطلاع از آخرین آپدیت‌ها در هر شرایطی، شبکه‌های اجتماعی رسمی المو دیزاین را دنبال کنید.

چرا فقط از اِلمو دیزاین دانلود کنیم؟!

چون ما خودمان طراح وب هستیم و دقیقاً می‌دانیم شما برای یک پروژه حرفه‌ای به چه چیزی نیاز دارید!

🚀 طراحی سایت در چند دقیقه (نه چند هفته!)

وقت طلاست! به جای ساعت‌ها کلنجار رفتن با تنظیمات پایه المنتور، کافیه کدهای آماده ما رو درون‌ریزی کنی. فقط متن، عکس و رنگ‌ها رو تغییر بده و پروژه رو در سریع‌ترین زمان ممکن به کارفرما تحویل بده. زمان بیشتر = گرفتن پروژه‌های بیشتر!

برخلاف خیلی از کدهای بازار که سایت را سنگین می‌کنند، تمام کدهای ما با جدیدترین استانداردها طراحی شده‌اند. نتیجه؟ یک سایت فوق‌العاده سریع که گوگل و سئوکارها عاشقش می‌شوند.

کابوس به‌هم‌ریختگی سایت در موبایل را فراموش کنید! تک‌تک کدها و صفحاتِ المو دیزاین با دقتِ پیکسلی برای موبایل و تبلت بهینه‌سازی شده‌اند تا کاربران شما بهترین تجربه کاربری (UX) را داشته باشند.

چرا برای هر قالب یا کد جداگانه هزینه کنید؟ با تهیه یک اشتراک ویژه (VIP)، قفل تمام آرشیو بزرگ المو دیزاین باز می‌شود و می‌توانید بدون محدودیت، برای ده‌ها پروژه مختلف از آن‌ها استفاده کنید.

دنیای طراحی وب هر روز در حال تغییر است. ما در المو دیزاین هر هفته کدها و صفحات جدیدی را بر اساس جدیدترین ترندهای UI/UX دنیا به آرشیو اضافه می‌کنیم تا سایت‌های شما همیشه مدرن و متمایز باشند.

کدهای دیگر

کد جدول قیمت گذاری ۳D
کد جدول قیمت گذاری شیشه ای
کد جستجوی پیشرفته ووکامرس
کد جستجوی پیشرفته ۳D
کد جستجوی پیشرفته
کد هدر کافی شاپ
کد هدر فروشگاه عطر
کد هدر آبمیوه فروشی
کد باکس محتوای ۳D شیشه ای
کد باکس محتوای ۳D
/* * Elemo Design Component * Brand: Elemo Design (https://elemodesign.ir/) * Resource Hub: https://elemodesign.ir/codes/ */:root { --elemo-bg-main: #0a0b10; --elemo-card-bg: rgba(18, 20, 29, 0.75); --elemo-card-border: rgba(255, 255, 255, 0.08); --elemo-accent-default: #2962ff; --elemo-text-primary: #ffffff; --elemo-text-secondary: #94a3b8; --elemo-font-family: inherit, 'Yekan Bakh', 'Vazirmatn', system-ui, sans-serif; }.elemo-luxury-carousel-wrapper { position: relative; width: 100%; max-width: 100%; min-height: 720px; background-color: var(--elemo-bg-main); background-image: radial-gradient(circle at 50% 30%, rgba(20, 24, 40, 0.9) 0%, #050608 100%); padding-block: 60px 80px; padding-inline: 20px; overflow: hidden; font-family: var(--elemo-font-family); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; }.elemo-grid-overlay { position: absolute; inset: 0; background-size: 40px 40px; background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px); pointer-events: none; z-index: 1; }.elemo-ambient-glow { position: absolute; top: 35%; left: 50%; transform: translate(-50%, -50%); width: 550px; height: 450px; background: radial-gradient(circle, var(--elemo-accent-default) 0%, rgba(0,0,0,0) 70%); filter: blur(80px); opacity: 0.35; transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease; pointer-events: none; z-index: 1; }.elemo-carousel-header { text-align: center; position: relative; z-index: 2; margin-block-end: 45px; max-width: 700px; }.elemo-badge { display: inline-block; padding-block: 6px; padding-inline: 16px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; color: #38bdf8; background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.25); border-radius: 100px; margin-block-end: 14px; text-transform: uppercase; backdrop-filter: blur(10px); }.elemo-title { color: var(--elemo-text-primary); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; margin: 0 0 10px 0; line-height: 1.3; }.elemo-subtitle { color: var(--elemo-text-secondary); font-size: 0.95rem; margin: 0; }.elemo-pro-swiper { width: 100% !important; max-width: 1300px; padding-block: 50px 70px !important; position: relative; z-index: 2; }.elemo-slide { width: 360px !important; flex-shrink: 0; transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); box-sizing: border-box; }@media (max-width: 768px) { .elemo-slide { width: 290px !important; } }.elemo-card-backdrop { position: relative; background: var(--elemo-card-bg); border: 1px solid var(--elemo-card-border); border-radius: 28px; padding-block: 30px 24px; padding-inline: 24px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease; }.swiper-slide-active .elemo-card-backdrop { border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7); transform: translateY(-8px); }.elemo-watermark { position: absolute; top: 20px; inset-inline-start: 20px; font-size: 2.2rem; font-weight: 900; color: rgba(255, 255, 255, 0.03); user-select: none; letter-spacing: 2px; line-height: 1; font-family: monospace, sans-serif; }.elemo-img-box { position: relative; width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; margin-block-end: 20px; perspective: 1000px; }.elemo-shoe-img { max-width: 105%; max-height: 220px; object-fit: contain; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.7)); transform: rotate(-12deg) scale(0.95); transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s ease; }.swiper-slide-active .elemo-shoe-img { transform: rotate(-16deg) scale(1.18) translateY(-14px); filter: drop-shadow(0 25px 35px rgba(0,0,0,0.85)); }.elemo-slide:hover .elemo-shoe-img { transform: rotate(-10deg) scale(1.22) translateY(-20px); }.elemo-card-details { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 8px; }.elemo-category { font-size: 0.75rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }.elemo-item-title { color: var(--elemo-text-primary); font-size: 1.15rem; font-weight: 800; margin: 0; line-height: 1.4; }.elemo-meta-wrap { display: flex; align-items: center; justify-content: space-between; margin-block-start: 16px; padding-block-start: 16px; border-block-start: 1px solid rgba(255, 255, 255, 0.07); }.elemo-price-box { display: flex; flex-direction: column; }.elemo-price-label { font-size: 0.7rem; color: #94a3b8; }.elemo-price-num { font-size: 1.1rem; font-weight: 900; color: #f8fafc; }.elemo-price-num small { font-size: 0.7rem; font-weight: normal; color: #94a3b8; margin-inline-start: 3px; }.elemo-btn-action { display: inline-flex; align-items: center; gap: 6px; background: #ffffff; color: #050608; text-decoration: none; font-size: 0.8rem; font-weight: 800; padding-block: 10px; padding-inline: 16px; border-radius: 12px; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }.elemo-btn-action:hover { background: #e2e8f0; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2); }.elemo-controls-wrap { display: flex; align-items: center; justify-content: center; gap: 20px; margin-block-start: 25px; position: relative; z-index: 5; }.elemo-nav-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #ffffff; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(10px); transition: all 0.3s ease; }.elemo-nav-btn svg { width: 20px; height: 20px; }.elemo-nav-btn:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); transform: scale(1.08); }.elemo-pagination { position: static !important; width: auto !important; }.elemo-pagination .swiper-pagination-bullet { width: 8px; height: 8px; background: rgba(255, 255, 255, 0.25); opacity: 1; transition: all 0.4s ease; border-radius: 8px; margin: 0 4px !important; }.elemo-pagination .swiper-pagination-bullet-active { width: 28px; background: #ffffff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.8); }
/* * Elemo Design Component * Brand: Elemo Design (https://elemodesign.ir/) * Resource Hub: https://elemodesign.ir/codes/ */(function () { // تابع ایمن راه‌اندازی با اطمینان از لود کامل کتابخانه Swiper function initElemoSwiper() { if (typeof Swiper === 'undefined') { setTimeout(initElemoSwiper, 50); return; }const glowElement = document.getElementById('elemoAmbientGlow'); const container = document.querySelector('.elemo-pro-swiper'); if (!container) return;const elemoSwiperInstance = new Swiper(container, { effect: 'coverflow', grabCursor: true, centeredSlides: true, slidesPerView: 'auto', initialSlide: 1, loop: true, speed: 700, observer: true, observeParents: true, autoplay: { delay: 4500, disableOnInteraction: false, pauseOnMouseEnter: true }, coverflowEffect: { rotate: 15, stretch: 0, depth: 180, modifier: 1.2, slideShadows: false }, pagination: { el: '.elemo-pagination', clickable: true }, navigation: { nextEl: '.elemo-nav-next', prevEl: '.elemo-nav-prev' }, on: { init: function () { updateGlow(this); }, slideChange: function () { updateGlow(this); } } });function updateGlow(swiper) { if (!glowElement) return; const activeSlide = swiper.slides[swiper.activeIndex]; if (activeSlide) { const color = activeSlide.getAttribute('data-glow') || 'rgba(41, 98, 255, 0.4)'; glowElement.style.background = 'radial-gradient(circle, ' + color + ' 0%, rgba(0,0,0,0) 70%)'; } } }if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', initElemoSwiper); } else { initElemoSwiper(); } })();






/*
 * Elemo Design Component
 * Brand: Elemo Design (https://elemodesign.ir/)
 * Resource Hub: https://elemodesign.ir/codes/
 */

:root {
    --elemo-bg-main: #0a0b10;
    --elemo-card-bg: rgba(18, 20, 29, 0.75);
    --elemo-card-border: rgba(255, 255, 255, 0.08);
    --elemo-accent-default: #2962ff;
    --elemo-text-primary: #ffffff;
    --elemo-text-secondary: #94a3b8;
    --elemo-font-family: inherit, 'Yekan Bakh', 'Vazirmatn', system-ui, sans-serif;
}

.elemo-luxury-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 720px;
    background-color: var(--elemo-bg-main);
    background-image: radial-gradient(circle at 50% 30%, rgba(20, 24, 40, 0.9) 0%, #050608 100%);
    padding-block: 60px 80px;
    padding-inline: 20px;
    overflow: hidden;
    font-family: var(--elemo-font-family);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.elemo-grid-overlay {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    pointer-events: none;
    z-index: 1;
}

.elemo-ambient-glow {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 450px;
    background: radial-gradient(circle, var(--elemo-accent-default) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    opacity: 0.35;
    transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    pointer-events: none;
    z-index: 1;
}

.elemo-carousel-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-block-end: 45px;
    max-width: 700px;
}

.elemo-badge {
    display: inline-block;
    padding-block: 6px;
    padding-inline: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 100px;
    margin-block-end: 14px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.elemo-title {
    color: var(--elemo-text-primary);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.elemo-subtitle {
    color: var(--elemo-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.elemo-pro-swiper {
    width: 100% !important;
    max-width: 1300px;
    padding-block: 50px 70px !important;
    position: relative;
    z-index: 2;
}

.elemo-slide {
    width: 360px !important;
    flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .elemo-slide {
        width: 290px !important;
    }
}

.elemo-card-backdrop {
    position: relative;
    background: var(--elemo-card-bg);
    border: 1px solid var(--elemo-card-border);
    border-radius: 28px;
    padding-block: 30px 24px;
    padding-inline: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.swiper-slide-active .elemo-card-backdrop {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
    transform: translateY(-8px);
}

.elemo-watermark {
    position: absolute;
    top: 20px;
    inset-inline-start: 20px;
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    user-select: none;
    letter-spacing: 2px;
    line-height: 1;
    font-family: monospace, sans-serif;
}

.elemo-img-box {
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-block-end: 20px;
    perspective: 1000px;
}

.elemo-shoe-img {
    max-width: 105%;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.7));
    transform: rotate(-12deg) scale(0.95);
    transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s ease;
}

.swiper-slide-active .elemo-shoe-img {
    transform: rotate(-16deg) scale(1.18) translateY(-14px);
    filter: drop-shadow(0 25px 35px rgba(0,0,0,0.85));
}

.elemo-slide:hover .elemo-shoe-img {
    transform: rotate(-10deg) scale(1.22) translateY(-20px);
}

.elemo-card-details {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.elemo-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.elemo-item-title {
    color: var(--elemo-text-primary);
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
}

.elemo-meta-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-block-start: 16px;
    padding-block-start: 16px;
    border-block-start: 1px solid rgba(255, 255, 255, 0.07);
}

.elemo-price-box {
    display: flex;
    flex-direction: column;
}

.elemo-price-label {
    font-size: 0.7rem;
    color: #94a3b8;
}

.elemo-price-num {
    font-size: 1.1rem;
    font-weight: 900;
    color: #f8fafc;
}

.elemo-price-num small {
    font-size: 0.7rem;
    font-weight: normal;
    color: #94a3b8;
    margin-inline-start: 3px;
}

.elemo-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #050608;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    padding-block: 10px;
    padding-inline: 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.elemo-btn-action:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.elemo-controls-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-block-start: 25px;
    position: relative;
    z-index: 5;
}

.elemo-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.elemo-nav-btn svg {
    width: 20px;
    height: 20px;
}

.elemo-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.elemo-pagination {
    position: static !important;
    width: auto !important;
}

.elemo-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    transition: all 0.4s ease;
    border-radius: 8px;
    margin: 0 4px !important;
}

.elemo-pagination .swiper-pagination-bullet-active {
    width: 28px;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}
/*
 * Elemo Design Component
 * Brand: Elemo Design (https://elemodesign.ir/)
 * Resource Hub: https://elemodesign.ir/codes/
 */

(function () {
    // تابع ایمن راه‌اندازی با اطمینان از لود کامل کتابخانه Swiper
    function initElemoSwiper() {
        if (typeof Swiper === 'undefined') {
            setTimeout(initElemoSwiper, 50);
            return;
        }

        const glowElement = document.getElementById('elemoAmbientGlow');
        const container = document.querySelector('.elemo-pro-swiper');
        if (!container) return;

        const elemoSwiperInstance = new Swiper(container, {
            effect: 'coverflow',
            grabCursor: true,
            centeredSlides: true,
            slidesPerView: 'auto',
            initialSlide: 1,
            loop: true,
            speed: 700,
            observer: true,
            observeParents: true,
            autoplay: {
                delay: 4500,
                disableOnInteraction: false,
                pauseOnMouseEnter: true
            },
            coverflowEffect: {
                rotate: 15,
                stretch: 0,
                depth: 180,
                modifier: 1.2,
                slideShadows: false
            },
            pagination: {
                el: '.elemo-pagination',
                clickable: true
            },
            navigation: {
                nextEl: '.elemo-nav-next',
                prevEl: '.elemo-nav-prev'
            },
            on: {
                init: function () {
                    updateGlow(this);
                },
                slideChange: function () {
                    updateGlow(this);
                }
            }
        });

        function updateGlow(swiper) {
            if (!glowElement) return;
            const activeSlide = swiper.slides[swiper.activeIndex];
            if (activeSlide) {
                const color = activeSlide.getAttribute('data-glow') || 'rgba(41, 98, 255, 0.4)';
                glowElement.style.background = 'radial-gradient(circle, ' + color + ' 0%, rgba(0,0,0,0) 70%)';
            }
        }
    }

    if (document.readyState === 'loading') {
        document.addEventListener('DOMContentLoaded', initElemoSwiper);
    } else {
        initElemoSwiper();
    }
})();