"Bootstrap 4 Slider"
Bootstrap 4.1.1 Snippet by md-ataur

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div id="carouselExampleIndicators" class="carousel slide carousel-fade" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<div class="mask flex-center">
<div class="container">
<div class="row align-items-center">
<div class="col-md-7 col-12 order-md-1 order-2">
<div class="carousel_caption">
<h1>Appearance</h1>
<h2>Your choice has been approved</h2>
<p>It is a long established fact that a reader will be happy</p>
<a href="#">View Now</a>
</div>
</div>
<div class="col-md-5 col-12 order-md-2 order-1"><img src="https://i.imgur.com/NKvkfTT.png" class="mx-auto" alt="slide"></div>
</div>
</div>
</div>
</div>
<div class="carousel-item">
<div class="mask flex-center">
<div class="container">
<div class="row align-items-center">
<div class="col-md-7 col-12 order-md-1 order-2">
<div class="carousel_caption">
<h1>Design</h1>
<h2>Pixel Event on Digital Design</h2>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#carouselExampleIndicators{position:relative; z-index:1; background:url(https://i.imgur.com/6axE29k.jpg) center center no-repeat; background-size:cover; }
.carousel_caption h1 {
color: #ffffff;
letter-spacing: 1px;
font-family: 'Poppins', sans-serif;
font-weight: 500;
margin: 0 0 5px;
text-transform: uppercase;
}
.carousel_caption h2 {
color: #ffffff;
letter-spacing: 1px;
font-family: Oswald;
font-weight: 200;
text-transform: uppercase;
}
.carousel_caption p {
color: #ffffff;
font-family: Poppins;
font-size: 13px;
}
.carousel_caption a {
font-size: 13px;
text-transform: uppercase;
font-family: 'Poppins', sans-serif;
font-weight: 400;
letter-spacing: 1px;
}
.carousel-item {
min-height: 500px;
background-size: cover;
background-position: center center;
}
.carousel-item a{background:#673AB7; font-size:14px; color:#FFF; padding:13px 32px; display:inline-block; }
.carousel-item a:hover{background:#394fa2; text-decoration:none; }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Hi...The slider I created in the template does not work properly, for example, the first slider is animated and the second and third sliders are not animated.

what is the problem?

Cytus (0) - 4 years ago - Reply 1