1 Example(s) of Bootstrap Carousel


Description :

Carousel is a plugin which displays items one by one i.e by sliding one by one.


Bootstrap Carousel Example - 1
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Bootstrap Carousel Example</title>
    <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
    <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
    <style>
        .carousel-inner > .item > img,
        .carousel-inner > .item > a > img {
            width: 50%;
            margin: auto;
        }
    </style>
</head>
<body>
    <div class="container" style="background-color:black">
        <br>
        <div id="myCarousel" class="carousel slide" data-ride="carousel">
            <!-- Indicators -->
            <ol class="carousel-indicators">
                <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
                <li data-target="#myCarousel" data-slide-to="1"></li>
                <li data-target="#myCarousel" data-slide-to="2"></li>
                <li data-target="#myCarousel" data-slide-to="3"></li>
            </ol>
            <!-- Wrapper for slides -->
            <div class="carousel-inner">
                <div class="item active">
                     <img src="http://learnkode.com/files/typescript-es6-es5.png"  alt="typescript" width="300" height="300"/>
                </div>
                <div class="item">
                    <img src="http://learnkode.com/files/net-web-development.png" alt=".net" width="300" height="300" />
                </div>

                <div class="item">
                    <img src="http://learnkode.com/files/bootstrap.png" alt="Bootstrap" width="300" height="300" />
                </div>

                <div class="item">
                    <img src="http://learnkode.com/files/495484_385c_3.jpg" alt="javascript" width="300" height="300" />
                </div>
            </div>
            <!-- Left and right controls -->
            <a class="left carousel-control" href="#myCarousel"  data-slide="prev">
                <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
            </a>
            <a class="right carousel-control" href="#myCarousel" data-slide="next">
                <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
            </a>
        </div>
    </div>
</body>
</html>

Output