How To Create E-Commerce Product Slider Using JavaScript
Learn How to make an eCommerce Product slider using HTML, CSS, and JavaScript. Easy way to create Product Slider for your upcoming websites. You will easily make this product slider by watching my video tutorial or by following these steps, which I have given below.
How To Create E-Commerce Product Slider Using HTML, CSS, and JavaScript
- 0.0 - 1.00 min : Intro
- 1.00 - 24.0 min: E-Commerce Product Slider Using HTML
In this tutorial, I will teach you how to make an eCommerce Product Slider Using JavaScript, HTML, and CSS. In the Video Tutorial, First, I show you the Product slider design, which I will create in this tutorial and then start making Product slider. First, I design the slider boxes using HTML and CSS. After, I use The Swiper Demo Plugin to convert into the slider. The source code link is given above in the post. I hope you like my tutorial. If you have any questions or problems, contact me.
1) First You Create A Folder, Where You Put The Website Files.
2) Create HTML, CSS, And Js File, And Put This File In The Website Folder.
3) Link CSS File With HTML
4) Link JS File With HTML
5) Copy HTML Code Which I Given Below And Past In Your HTML File.
Product-slider P R O D U C T S L I D E R 1
P R O D U C T S L I D E R 2
6) Copy CSS Code Which I Given Below And Past In Your CSS File.
@charset "utf-8"; /* CSS Document */ html,body{ position:relative; height:100%;} body{ margin:0px; padding:0px; font-family:montserrat,sans-serif; background-color:rgba(241,241,241,1.00);} .swiper-slide{ width:250px !important; } .slider-box{ margin:20px; height:350px; width:250px; position:relative; background-color:#FFFFFF; border-radius:5px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; border:1px solid rgba(187,187,187,0.40); } .slider-box a{ text-decoration:none; text-align:center;} .img-box{ height:170px; } .img-box img{ height:auto; max-width:100%; max-height:100%;} .time{ position:absolute; top:0px; right:20px; color:#f16007;} .detail{ display:flex; flex-direction:column; align-items:center; box-sizing:border-box; font-size:13px; line-height:35px;} .price{ color:#FFFFFF; background-color:#ff555b; line-height:20px;} .cart{ position:absolute; bottom:0px; height:45px; background-color:#ff696e; width:100%; display:flex; justify-content:center; align-items:center;} .cart a{ color:#FFFFFF;} .slider-box:hover{ box-shadow:2px 2px 12px rgba(47,47,47,0.40); } .slider-box:hover .img-box img{ transform:scale(1.07); transition:all ease 0.3s;} .cart:hover{ transform:scale(1.1); background-color:#fe9048; box-shadow:2px 2px 12px rgba(47,47,47,0.40); transition:all ease 0.1s;} .heading{ display:flex; justify-content:center; } .heading h1{ border-left:2px solid #000000; Border-right:2px solid #000000; background-color:#f05656; text-shadow:2px 2px 12px rgba(69,66,66,0.3); padding:0px 10px; color:#FFFFFF; margin:20px; font-size:30px; font-family:calibri;}
7) Copy Javascript Code Which I Given Below And Past In Your JavaScript File.
// JavaScript Document //swiper script var swiper = new Swiper('.swiper-container', { slidesPerView: 5.2, spaceBetween: 30, pagination: { el: '.swiper-pagination', clickable: true, }, });
8) All Files link, Which I use in the project given below.
The Download Links Will Be Shown in 30 Seconds
In this tutorial, I will teach you how to make an eCommerce Product Slider Using JavaScript, HTML, and CSS. In the Video Tutorial, First, I show you the Product slider design, which I will create in this tutorial and then start making Product slider. First, I design the slider boxes using HTML and CSS. After, I use The Swiper Demo Plugin to convert into the slider. The source code link is given above in the post. I hope you like my tutorial. If you have any questions or problems, contact me.
Comments