// Loading...
Copy the complete HTML file into your project.
Example:
premium-product-slider.html
The package includes:
Simply open the file in any modern browser.
Supported Browsers:
No installation required.
Locate a product card:
<div class="product-card">
Replace:
Example:
<h3 class="product-name">Samsung Galaxy S25 Ultra</h3>
<p class="product-category">Smartphone</p>
<span class="price">$1299.00</span>
Find:
<img src="image-url.jpg" class="product-img">
Replace with your own image URL.
Example:
<img src="images/product-1.jpg" class="product-img">
Recommended Size:
800 × 800 px
Duplicate any product card block:
<div class="product-card">
...
</div>
Paste it below existing cards.
The slider automatically handles additional products.
Locate:
<h1 class="main-title">
Premium Finds
</h1>
Change it to:
<h1 class="main-title">
Featured Products
</h1>
You can also update:
EXCLUSIVE
SMOOTH & RESPONSIVE UI
with your own branding.
Find:
let currentIndex = 2;
Values:
0 = First Product
1 = Second Product
2 = Third Product
3 = Fourth Product
Example:
let currentIndex = 0;
Starts slider from first product.
Locate:
cartTotal.innerText =
`$${total.toLocaleString()}`
Change:
$
to:
₹
€
£
AED
Example:
₹${total.toLocaleString()}
Currently the demo updates only a visual cart.
Find:
function addToCart(btn, price)
Add your backend/API code:
addProductToCart(productId);
Example:
fetch('/cart/add', {
method: 'POST'
});
Wishlist uses:
<i class="far fa-heart heart-icon">
You can connect it with your database:
saveWishlist(productId);
or
removeWishlist(productId);
Main colors are defined in:
#ec4899
#8b5cf6
#3b82f6
Replace with your brand colors.
Example:
#10b981
#059669
#34d399
for a green theme.
The slider already includes:
✅ Touch Swipe
✅ Responsive Cards
✅ Adaptive Layout
✅ Mobile Friendly Controls
✅ Optimized Spacing
No additional mobile setup is required.
✅ Fully Responsive Design
✅ Active Center Card Highlight
✅ Premium Glassmorphism UI
✅ Wishlist Animation
✅ Dynamic Cart Counter
✅ Flying Product To Cart Animation
✅ Touch Swipe Support
✅ Pagination Dots
✅ Previous / Next Controls
✅ Responsive Product Cards
✅ Dynamic Price Calculation
✅ Modern Gradient Effects
✅ Smooth Transitions
✅ Pure HTML CSS JavaScript
HTML5, CSS3, JavaScript
Yes, the slider is fully responsive and adapts seamlessly to mobile, tablet, and desktop devices.
Yes, the slider includes automatic scrolling functionality along with pause-on-hover support for better user experience.
Yes, you can easily customize product images, titles, prices, ratings, badges, buttons, and other card elements.
Yes, the slider features add-to-cart animations, flying product effects, cart counter updates, and toast notifications.
The product slider is built using pure HTML5, CSS3, and JavaScript without relying on any external frameworks or libraries.