Asp.net modules
  • Home
  • c# Modules
  • Web Design
    • Html
    • Css
    • Java Script
  • Bootstrap
  • Sql
    • Queries
    • Stored Procedures
  • About Me
    • About Myself
    • My Projects
    • My Resume
  • Photo Gallery

Saturday, October 10, 2015

How To Create a Carousel In Bootstrap

 Unknown     10:28 AM     Bootstrap     1 comment   

Introduction :-

Hii Friends..

Today I explain how to make a carousel in bootstrap . The class="carousel" specifies that this <div> contains a carousel. The .slide class adds a CSS transition and animation effect, which makes the items slide when showing a new item. Omit this class if you do not want this effect.

Step : 1   The Code goes here :->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">
    <title>Asp.Net Modules</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap.theme.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
    <link href="css/custom_HomePage.css" rel="stylesheet">
</head>
<body>
  <div class="container">
        <div class="row">
            <div class="col-sm-6">
             <div class="container">
            <div class="row">
              <div class="col-lg-3">
                </div>
              <div class="col-lg-9">
            <!--Slider code start-->
              <div id="myslider" class="carousel slide"  data-interval="2000">
                        <!-- Indicators -->
                        <ol class="carousel-indicators">
                            <li data-target="#myslider" data-slide-to="0" class="active"></li>
                            <li data-target="#myslider" data-slide-to="1"></li>
                            <li data-target="#myslider" data-slide-to="2"></li>
                            <li data-target="#myslider" data-slide-to="3"></li>
                            <li data-target="#myslider" data-slide-to="4"></li>
                             </ol>
                         <!-- Wrapper for slides -->
                        <div class="carousel-inner">
                            <div class="item active">
                                <img class="img-responsive" src="img/slide1.jpg" alt="">
                            </div>
                            <div class="item">
                                <img class="img-responsive" src="img/slide2.jpg" alt="">
                            </div>
                            <div class="item">
                                <img class="img-responsive" src="img/slide3.jpg" alt="">
                            </div>
                           
                            <div class="item">
                                <img class="img-responsive" src="img/slide4.jpg" alt="">
                            </div>
                            <div class="item">
                                <img class="img-responsive" src="img/slide5.jpg" alt="">
                            </div>
                         </div>
                     <!-- Controls -->
                        <a class="left carousel-control" href="#myslider" data-slide="prev">
                            <span class="icon-prev"></span>
                        </a>
                        <a class="right carousel-control" href="#myslider" data-slide="next">
                            <span class="icon-next"></span>
                        </a>
                    </div>
                  </div>
                     </div><!-- /.container -->
  <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="js/jquery.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
</body>

</html>

Here some js and css are already given by bootstrap you can easily download css from (getbootstrap.com) and  js from (https://jquery.com/download/) .

DEMO:-



  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

1 comment:

  1. UnknownOctober 13, 2015 at 10:06 AM

    short and crisp.. very nice..

    ReplyDelete
    Replies
      Reply
Add comment
Load more...

Popular Posts

  • Asp.net insert, Edit, update, delete in grid view
    Introduction :   Here I explain how to insert, edit, update and delete data in grid view using asp.net. In this project I use so...
  • Angular Expressions
    Intoduction :-   Hii Friends... Today I explain about angular js expressions. this is similar to JavaScript expressions. 1) The expr...
  • Basic of css.
    Introduction :- Hii Friends..   Today I explain what is Css and why we use Css and the basic structure of css. so here I               ...
  • stored procedure with case and actions
    Intoduction :- Hii Friends... Today I  explain how to use case and action in stored procedure .  CREATE Proc [dbo].[Proc_ManageRatingA...
  • How to create pikachu character using HTML & CSS
    Hii Friends... Today I explain how to create cartoon( Pikachu character) using HTML and CSS . you can use this code in your project cop...
  • How To Make Semi-Transparent Buttons
    Intoduction :-   Hii Friends...   Today I explain how to make Semi-Transparent Buttons with the help of css. This style now a days goes t...
  • Create a Cart Popup div in HTML & CSS
    Intoduction :-   Hii Friends... Today I explain how to Create a Cart Popup div in HTML & CSS . This moduel base on mouse hover when y...
  • Awarepedia services
    Intoduction :-   Hii Friends...   Today I explain services of awarepedia.com  . Awarepedia is a online software development company and the...
  • How To scroll from bottom to top
    Intoduction :- Hii Friends...   Today I explain How To scroll from top to bottom and bottom to top, we use “scrollTop” function of jque...
  • Auto-Hiding Navbar with Javascript
    Intoduction :-   Hii Friends... today i explain how to hide a navbar when scroll the page. Fixed headers are fairly common nowadays with...

Blog Archive

  • ►  2017 (13)
    • ►  December (1)
    • ►  March (5)
    • ►  February (1)
    • ►  January (6)
  • ►  2016 (31)
    • ►  November (1)
    • ►  September (1)
    • ►  June (6)
    • ►  May (3)
    • ►  April (2)
    • ►  March (8)
    • ►  February (9)
    • ►  January (1)
  • ▼  2015 (31)
    • ►  December (3)
    • ►  November (4)
    • ▼  October (18)
      • How to make over-out event with js
      • How to convert lower case to upper case
      • How to rotate the image with Css
      • How to make Zoom-in and Zoom-out image with Css
      • How to make hover on a image with css
      • How To Make Tables In Sql
      • How to fill dropdown with one dropdown click
      • How To Make A Bill with JavaScript
      • How To Make A Timer With JavaScript
      • How To Make A Calculator In Html
      • How To Create a Carousel In Bootstrap
      • Basic of css.
      • How to make a image responsive in bootstrap
      • How to make a nav-bar in bootstrap
      • How to use well in bootstrap
      • How to make a jumborton in bootstrap
      • Basic of html
      • How to Make Glyphicon in bootstrap
    • ►  September (6)

About Me

Unknown
View my complete profile

Copyright © Asp.net modules | Powered by Blogger
Design by Sheetal Khandelwal