content logo

Bootstrap Sliders:

Bootstrap Responsive Horizontal Card Slider

We are provided the cards for you to use on your website. In this Bootstrap Responsive Horizontal Card Slider, you can add several cards to your website. If you apply this Bootstrap Card Code to your page, you can mention a lot of information in a small place. As a result, it helps you to save physical space and sort the content of your page into several sections. This HTML Card Slider also allows you to have a beautiful website and it changes the design of your page.

As you see from the following preview, these CSS Horizontal Sliding Cards have a white background with black texts. So, you can use it if you have a website with a simple design. There is a larger title at the top of the page. Then, the texts are placed in the middle of the page and you can see a red field at the bottom of the card. The text inside this field is white. After putting the mouse’s cursor on this field, its background changes to white and a red border will be displayed. Additionally, its text turns red, too. There are two lines at the bottom of the Responsive Sliding Cards Code that you can move to another page smoothly.

#

Bootstrap Card Code

#

HTML Card Slider

#

CSS Horizontal Sliding Cards

#

Responsive Sliding Cards Code

<!-- This script got from frontendfreecode.com -->
<div class="Amazing">
<div id="carouselExampleIndicators" class="carousel slide" data-bs-ride="carousel">
    <div class="carousel-indicators">
    <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" class="carInd active" aria-current="true" aria-label="Slide 1" style="background-color: black !important;"></button>
    <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1" aria-label="Slide 2" style="background-color: black !important;"></button>
    </div>
    <div class="carousel-inner py-4">
    <div class="carousel-item active">
        <div class="container my-4">
        <div class="card mb-3 filter shadow-lg mx-auto pt-3 pb-3" style="padding: 0%; border: none; width: 75%;">
            <div class="row g-0 py-4">
            <div class="imgSec col-12 col-md-5 d-flex" style="position: relative; height: 25vh;">
                <div class="imgHero my-auto" style="transform: translateX(-10%); width: 100%; height: 100%">
                <div class="imageFirst h-100">
                </div>
                </div>
            </div>
            <div class="col-12 col-md-7 py-3 px-md-1 px-1">
                <div class="card-body my-auto">
                <h3 class="card-title">Card title</h5>
                    <p class="card-text " style="margin-top: 2%;">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua Egestas purus viverra accumsan in nisl nisi
                    </p>
                    <div class="buttonCard" style="margin-top: 3%;">
                    <button class="btn btn-primary col-md-3 mt-1 mt-md-0 " type="submit">Get
                        Now
                    </button>
                    </div>
                </div>
            </div>
            </div>
        </div>
        </div>
    </div>
    <div class="carousel-item">
        <div class="container my-4">
        <div class="card mb-3 filter shadow-lg mx-auto pt-3 pb-3" style="padding: 0%; border: none; width: 75%;">
            <div class="row g-0 py-4">
            <div class="imgSec col-12 col-md-5 d-flex" style="position: relative; height: 25vh;">
                <div class="imgHero my-auto" style="transform: translateX(-10%); width: 100%; height: 100%">
                <div class="imageSecond h-100">
                </div>
                </div>
            </div>
            <div class="col-12 col-md-7 py-3 px-md-1 px-1">
                <div class="card-body my-auto">
                <h3 class="card-title">Card title</h5>
                    <p class="card-text " style="margin-top: 2%;">This is a wider card with
                    text
                    below as a natural lead-in to additional content. This content is a
                    little bit longer, wider card with text
                    below as a natural
                    </p>
                    <div class="buttonCard" style="margin-top: 3%;">
                    <button class="btn btn-primary col-md-3 mt-1 mt-md-0 " type="submit">Get
                        Now
                    </button>
                    </div>
                </div>
            </div>
            </div>
        </div>
        </div>
    </div>
    </div>
</div>
</div>
&nbsp;
<!--Only Card-->
<div class="container my-4">
<div class="card mb-3 filter shadow-lg mx-auto pt-3 pb-3" style="padding: 0%; border: none; width: 75%;">
    <div class="row g-0 py-4">
    <div class="imgSec col-12 col-md-5 d-flex" style="position: relative; height: 25vh;">
        <div class="imgHero my-auto" style="transform: translateX(-10%); width: 100%; height: 100%">
        <div class="stillCardImage h-100">
        </div>
        </div>
    </div>
    <div class="col-12 col-md-7 py-3 px-md-1 px-1">
        <div class="card-body my-auto">
        <h3 class="card-title">Card title</h5>
            <p class="card-text " style="margin-top: 2%;">This is a wider card with text
            below as a natural lead-in to additional content. This content is a little bit
            longer, wider card with text
            below as a natural
            </p>
            <div class="buttonCard" style="margin-top: 3%;">
            <button class="btn btn-primary col-md-3 mt-1 mt-md-0 " type="submit">Get Now
            </button>
            </div>
        </div>
    </div>
    </div>
</div>
</div>&nbsp;<a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Poppins", sans-serif;
}
body {
	font-family: "poppins", sans-serif;
}
.btn {
	background-image: linear-gradient(#f8763e, #f8425c);
	border: none;
	box-shadow: 0 0.8rem 3rem rgba(255, 67, 34, 0.5) !important;
	transition: 0.4s ease-in;
}
.btn:focus {
	outline: none !important;
	box-shadow: none !important;
	box-shadow: none !important;
	background-image: none !important;
	background-color: white !important;
	border: 1px solid red;
	color: red;
}
.btn:hover {
	box-shadow: none !important;
	background-image: none !important;
	background-color: white !important;
	border: 1px solid red !important;
	color: red !important;
}
.btn-primary {
	color: #fff;
	background-color: white !important;
	border-color: white !important;
}
input:focus {
	outline: none !important;
}
.imageSecond {
	background-image: url("http://frontendfreecode.com/img/back-1.jpg");
	background-size: cover;
}
.imageFirst {
	background-image: url("http://frontendfreecode.com/img/back-2.jpg");
	background-size: cover;
}
.stillCardImage {
	background-image: url("http://frontendfreecode.com/img/back-1.jpg");
	background-size: cover;
	transition: 0.5s ease-in-out;
}
.stillCardImage::after {
	content: "";
	z-index: 1;
	opacity: 0;
	background: rgba(0, 0, 0, 0.6);
	display: block;
	width: 100%;
	height: 100%;
	transition: 0.3s ease-in-out;
}
.stillCardImage:hover:after {
	z-index: 1;
	opacity: 1;
	background: rgba(0, 0, 0, 0.4);
}
@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-20px);
	}
	100% {
		transform: translatey(0px);
	}
}
@media (max-width: 575.98px) {
	.imgHero {
		transform: translateX(0%) !important;
		transform: translateY(-28%) !important;
		height: 100%;
		padding-right: 20px;
		padding-left: 20px;
	}
	.card {
		width: 100% !important;
		height: 60% !important;
	}
	.buttonCard {
		padding-left: 4%;
		padding-right: 4%;
	}
	.imgSec {
		height: 100% !important;
	}
}
@media (max-width: 767.98px) {
	.imgHero {
		transform: translateX(0%) !important;
		transform: translateY(-28%) !important;
		height: 35%;
	}
	.card {
		width: 100% !important;
	}
}
@media (max-width: 991.98px) {
	.imgHero {
		height: 100%;
		justify-content: center;
	}
	.card {
		width: 100% !important;
	}
}
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" >
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js" ></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.min.js" ></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" >
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js" ></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.min.js" ></script>
<style>
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Poppins", sans-serif;
}
body {
	font-family: "poppins", sans-serif;
}
.btn {
	background-image: linear-gradient(#f8763e, #f8425c);
	border: none;
	box-shadow: 0 0.8rem 3rem rgba(255, 67, 34, 0.5) !important;
	transition: 0.4s ease-in;
}
.btn:focus {
	outline: none !important;
	box-shadow: none !important;
	box-shadow: none !important;
	background-image: none !important;
	background-color: white !important;
	border: 1px solid red;
	color: red;
}
.btn:hover {
	box-shadow: none !important;
	background-image: none !important;
	background-color: white !important;
	border: 1px solid red !important;
	color: red !important;
}
.btn-primary {
	color: #fff;
	background-color: white !important;
	border-color: white !important;
}
input:focus {
	outline: none !important;
}
.imageSecond {
	background-image: url("http://frontendfreecode.com/img/back-1.jpg");
	background-size: cover;
}
.imageFirst {
	background-image: url("http://frontendfreecode.com/img/back-2.jpg");
	background-size: cover;
}
.stillCardImage {
	background-image: url("http://frontendfreecode.com/img/back-1.jpg");
	background-size: cover;
	transition: 0.5s ease-in-out;
}
.stillCardImage::after {
	content: "";
	z-index: 1;
	opacity: 0;
	background: rgba(0, 0, 0, 0.6);
	display: block;
	width: 100%;
	height: 100%;
	transition: 0.3s ease-in-out;
}
.stillCardImage:hover:after {
	z-index: 1;
	opacity: 1;
	background: rgba(0, 0, 0, 0.4);
}
@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-20px);
	}
	100% {
		transform: translatey(0px);
	}
}
@media (max-width: 575.98px) {
	.imgHero {
		transform: translateX(0%) !important;
		transform: translateY(-28%) !important;
		height: 100%;
		padding-right: 20px;
		padding-left: 20px;
	}
	.card {
		width: 100% !important;
		height: 60% !important;
	}
	.buttonCard {
		padding-left: 4%;
		padding-right: 4%;
	}
	.imgSec {
		height: 100% !important;
	}
}
@media (max-width: 767.98px) {
	.imgHero {
		transform: translateX(0%) !important;
		transform: translateY(-28%) !important;
		height: 35%;
	}
	.card {
		width: 100% !important;
	}
}
@media (max-width: 991.98px) {
	.imgHero {
		height: 100%;
		justify-content: center;
	}
	.card {
		width: 100% !important;
	}
}
</style>

</head>
<body>
<div class="Amazing">
<div id="carouselExampleIndicators" class="carousel slide" data-bs-ride="carousel">
    <div class="carousel-indicators">
    <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" class="carInd active" aria-current="true" aria-label="Slide 1" style="background-color: black !important;"></button>
    <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1" aria-label="Slide 2" style="background-color: black !important;"></button>
    </div>
    <div class="carousel-inner py-4">
    <div class="carousel-item active">
        <div class="container my-4">
        <div class="card mb-3 filter shadow-lg mx-auto pt-3 pb-3" style="padding: 0%; border: none; width: 75%;">
            <div class="row g-0 py-4">
            <div class="imgSec col-12 col-md-5 d-flex" style="position: relative; height: 25vh;">
                <div class="imgHero my-auto" style="transform: translateX(-10%); width: 100%; height: 100%">
                <div class="imageFirst h-100">
                </div>
                </div>
            </div>
            <div class="col-12 col-md-7 py-3 px-md-1 px-1">
                <div class="card-body my-auto">
                <h3 class="card-title">Card title</h5>
                    <p class="card-text " style="margin-top: 2%;">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua Egestas purus viverra accumsan in nisl nisi
                    </p>
                    <div class="buttonCard" style="margin-top: 3%;">
                    <button class="btn btn-primary col-md-3 mt-1 mt-md-0 " type="submit">Get
                        Now
                    </button>
                    </div>
                </div>
            </div>
            </div>
        </div>
        </div>
    </div>
    <div class="carousel-item">
        <div class="container my-4">
        <div class="card mb-3 filter shadow-lg mx-auto pt-3 pb-3" style="padding: 0%; border: none; width: 75%;">
            <div class="row g-0 py-4">
            <div class="imgSec col-12 col-md-5 d-flex" style="position: relative; height: 25vh;">
                <div class="imgHero my-auto" style="transform: translateX(-10%); width: 100%; height: 100%">
                <div class="imageSecond h-100">
                </div>
                </div>
            </div>
            <div class="col-12 col-md-7 py-3 px-md-1 px-1">
                <div class="card-body my-auto">
                <h3 class="card-title">Card title</h5>
                    <p class="card-text " style="margin-top: 2%;">This is a wider card with
                    text
                    below as a natural lead-in to additional content. This content is a
                    little bit longer, wider card with text
                    below as a natural
                    </p>
                    <div class="buttonCard" style="margin-top: 3%;">
                    <button class="btn btn-primary col-md-3 mt-1 mt-md-0 " type="submit">Get
                        Now
                    </button>
                    </div>
                </div>
            </div>
            </div>
        </div>
        </div>
    </div>
    </div>
</div>
</div>
&nbsp;
<!--Only Card-->
<div class="container my-4">
<div class="card mb-3 filter shadow-lg mx-auto pt-3 pb-3" style="padding: 0%; border: none; width: 75%;">
    <div class="row g-0 py-4">
    <div class="imgSec col-12 col-md-5 d-flex" style="position: relative; height: 25vh;">
        <div class="imgHero my-auto" style="transform: translateX(-10%); width: 100%; height: 100%">
        <div class="stillCardImage h-100">
        </div>
        </div>
    </div>
    <div class="col-12 col-md-7 py-3 px-md-1 px-1">
        <div class="card-body my-auto">
        <h3 class="card-title">Card title</h5>
            <p class="card-text " style="margin-top: 2%;">This is a wider card with text
            below as a natural lead-in to additional content. This content is a little bit
            longer, wider card with text
            below as a natural
            </p>
            <div class="buttonCard" style="margin-top: 3%;">
            <button class="btn btn-primary col-md-3 mt-1 mt-md-0 " type="submit">Get Now
            </button>
            </div>
        </div>
    </div>
    </div>
</div>
</div>&nbsp;<div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview