{"id":90,"date":"2024-05-07T17:37:39","date_gmt":"2024-05-07T17:37:39","guid":{"rendered":"https:\/\/codebox.keyframetechsolution.com\/?p=90"},"modified":"2025-03-02T14:19:10","modified_gmt":"2025-03-02T14:19:10","slug":"responsive-multiple-card-slider","status":"publish","type":"post","link":"https:\/\/codebox.keyframetechsolution.com\/responsive-multiple-card-slider\/","title":{"rendered":"How to Build Responsive Multiple Card Slider &#8211; HTML CSS JavaScript"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p><span data-preserver-spaces=\"true\">A multiple card slider is a popular design element used in web development to showcase content in a horizontal, scrollable layout. It\u2019s often used for displaying products, blog posts, or portfolio items in a compact and visually appealing way. <\/span><\/p>\n<p><span data-preserver-spaces=\"true\">In this blog, I will show you how to build a simple, responsive multiple card slider using HTML, CSS, and JavaScript, so that you can add this interactive feature to your website.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Let\u2019s break it down into easy-to-follow steps.<\/span><\/p>\n<p>\u2705 <strong>Watch Live Preview<\/strong> \ud83d\udc49\ud83d\udc49<\/p>\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/VmzNL6CsyvA?si=i6CfmUbZ8-HYfxcg\" width=\"100%\" height=\"450\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<p><a href=\"#conclusion\">Click Here to Download the Code<\/a><\/p>\n<h2>What is a Card Slider?<\/h2>\n<p>A card slider displays multiple cards in a row, with each card containing text, images, or links. Users can navigate through the slider using arrows, dots, or swipe gestures. It\u2019s a versatile component commonly used in portfolios, e-commerce sites, and landing pages.<\/p>\n<h3>Understand the Key Elements<\/h3>\n<p><span data-preserver-spaces=\"true\">Before diving into the code, it\u2019s important to understand the basic components of the card slider:<\/span><\/p>\n<ul>\n<li><strong><span data-preserver-spaces=\"true\">Cards<\/span><\/strong><span data-preserver-spaces=\"true\">: These are the individual items that will be shown in the slider. Each card can hold an image, text, or other elements, depending on the design.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">Slider Container<\/span><\/strong><span data-preserver-spaces=\"true\">: The area that holds the cards and allows them to be scrolled or navigated horizontally.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">Navigation Controls<\/span><\/strong><span data-preserver-spaces=\"true\">: Buttons (usually left and right arrows) that allow users to move through the cards.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">Responsive Design<\/span><\/strong><span data-preserver-spaces=\"true\">: Slider must adapt to different screen sizes, make sure it fits well on desktops, tablets, and smartphones<\/span><\/li>\n<\/ul>\n<h3>Set Up Project<\/h3>\n<p>Start by creating a folder on your computer for your project. Inside this folder, create the following files:<\/p>\n<ul>\n<li><strong>index.html<\/strong><\/li>\n<li><strong>style.css<\/strong><\/li>\n<li><strong>script.js<\/strong><\/li>\n<\/ul>\n<h2><strong><span data-preserver-spaces=\"true\">Source Code<\/span><\/strong><\/h2>\n<h3><strong><span data-preserver-spaces=\"true\">HTML Code Structure<\/span><\/strong><\/h3>\n<div class=\"code-container\">\n<div class=\"toolbar\">\n<div class=\"actions\">\n        <span><\/span><br \/>\n        <span class=\"yellow\"><\/span><br \/>\n        <span class=\"green\"><\/span>\n      <\/div>\n<div class=\"title\">index.html<\/div>\n<\/div>\n<div class=\"code-content\">\n<pre><code class=\"language-markup\">\r\n&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"en\"&gt;\r\n&lt;head&gt;\r\n  &lt;meta charset=\"UTF-8\"&gt;\r\n  &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\r\n  &lt;title&gt;Responsive Multiple Card Slider using HTML CSS &amp; JavaScript&lt;\/title&gt;\r\n  &lt;link rel=\"stylesheet\" href=\"style.css\"&gt;\r\n  &lt;link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/4.7.0\/css\/font-awesome.min.css\"&gt;\r\n  &lt;script src=\"https:\/\/code.jquery.com\/jquery-3.5.1.min.js\"&gt;&lt;\/script&gt;\r\n  &lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/typed.js\/2.0.11\/typed.min.js\"&gt;&lt;\/script&gt;\r\n  &lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/waypoints\/4.0.1\/jquery.waypoints.min.js\"&gt;&lt;\/script&gt;\r\n  &lt;link rel=\"stylesheet\" href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@400;500;600;700&amp;family=Ubuntu:wght@400;500;700&amp;display=swap\"&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;!-- CODE --&gt;\r\n\r\n&lt;script src=\"script.js\"&gt;&lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<\/div>\n<\/div>\n<h3>CSS Code Structure<\/h3>\n<div class=\"code-container\">\n<div class=\"toolbar\">\n<div class=\"actions\">\n        <span><\/span><br \/>\n        <span class=\"yellow\"><\/span><br \/>\n        <span class=\"green\"><\/span>\n      <\/div>\n<div class=\"title\">style.css<\/div>\n<\/div>\n<div class=\"code-content\">\n<pre><code class=\"language-markup\">\r\n&lt; \/* Your CSS code here *\/ &gt;\r\n&lt; * { &gt;\r\n\r\n&lt; margin: 0; &gt;\r\n&lt; padding: 0 &gt;\r\n&lt; box-sizing: border-box; &gt;\r\n&lt;     text-decoration: none; &gt;\r\n&lt;     } &gt;\r\n      <\/code><\/pre>\n<\/div>\n<\/div>\n<h3>JavaScript Code Structure<\/h3>\n<div class=\"code-container\">\n<div class=\"toolbar\">\n<div class=\"actions\">\n        <span><\/span><br \/>\n        <span class=\"yellow\"><\/span><br \/>\n        <span class=\"green\"><\/span>\n      <\/div>\n<div class=\"title\">script.js<\/div>\n<\/div>\n<div class=\"code-content\">\n<pre><code class=\"language-markup\">\r\n&lt; \/\/ JavaScript Code &gt;\r\n      <\/code><\/pre>\n<\/div>\n<\/div>\n<h2 id='conclusion'><span data-preserver-spaces=\"true\">Conclusion<\/span><\/h2>\n<p><span data-preserver-spaces=\"true\">You\u2019ve learned how to build a responsive multiple card slider that allows you to showcase various types of content, such as products, articles, or images, in a clean and user-friendly way. <\/span><span data-preserver-spaces=\"true\">By following this guide, you can now customize and integrate it into your projects.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Feel free to experiment with different styles, animations, and features, such as infinite looping or auto-sliding, to make your slider <\/span><span data-preserver-spaces=\"true\">even<\/span><span data-preserver-spaces=\"true\"> more interactive and engaging. With just a few lines of code, you can create an attractive, functional, and responsive element for your website!<\/span><\/p>\n<p><strong><i class=\"fa fa-download\" style=\"color: #046bd2;\"><\/i> 88 people bought this<\/strong><\/p>\n<p><strong>Grab it Now for Just <i class=\"fa fa-rupee\" style=\"color:#046bd2;\"><\/i><span style=\"color:#046bd2;\">50<\/span><\/strong> <del>\u20b9100<\/del><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction A multiple card slider is a popular design element used in web development to showcase content in a horizontal, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":92,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[5,351],"tags":[292,291,345,344,34,346],"class_list":["post-90","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-image-slider","category-offer","tag-card-carousel-html-css-javascript","tag-card-slider-design","tag-card-slider-template-html-css","tag-multiple-card-slider-css","tag-responsive-card-slider-html-css","tag-simple-card-slider"],"acf":[],"_links":{"self":[{"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/posts\/90","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/comments?post=90"}],"version-history":[{"count":15,"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/posts\/90\/revisions"}],"predecessor-version":[{"id":1677,"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/posts\/90\/revisions\/1677"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/media\/92"}],"wp:attachment":[{"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/media?parent=90"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/categories?post=90"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/tags?post=90"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}