Giter VIP home page Giter VIP logo

jquery.slideshow.js's Introduction

#jquery.slideshow.js

SlideShow is a jQuery plug-in for animated photo gallery.

###How to get started

HTML Code

    <div id="box_slide">   
        
    <img src="image1.jpg" class="attuale">
    <img src="image2.jpg">
    <img src="image3.jpg">
    <img src="image4.jpg">
    <img src="image5.jpg">
        
    <ol class="indicators">
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
   </ol>    
        
   </div>

The images are contained in a div#box_slide and the first image is applied to the class ".attuale" and have a size of 700x400px, the list ol contains indicators of the number of the displayed image, add to the html version of the recent jquery and plug-in jquery.slideshow.js

<script src="jquery-1.10.2.js"></script>
<script src="jquery.slideshow.js"></script>

and the style sheet style.css

CSS Code

    div#box_slide{
    position: relative;
    width: 700px;
    height: 400px;
    margin-left: auto;
    margin-right: auto;
    border: 10px solid #fff;
   -moz-border-radius: 3px;
   -webkit-border-radius: 3px;
    border-radius: 3px;
   -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
                 }
            
    div#box_slide img{
    display: none;
    position: absolute;
    top: 0;left: 0;
    } 
            
   .attuale{}
          
   .sfondo{background-color: #fff;}
              
    ol.indicators{
    position: absolute;
    list-style: none;
    }
              
     ol.indicators li{
     float: left;
     border: 1px  solid #fff;
     width: 8px;
     height: 8px;
     margin-right: 5px;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
     border-radius: 20px;
     }

JS Code

$(document).ready(function(){
$('#box_slide').slideshow();
});

default speed of the time of appearance of an image and another is 4000 milliseconds, you can choose a different time interval using the value "in_speed" of the variable "default" of "jquery.slideshow.js ":

 $(document).ready(function(){
 $('#box_slide').slideshow({in_speed:2000});
 });

See the Pen JoOZaJ by michele de falco (@MicheleDeF) on CodePen.

http://micheledef.github.io/jquery.slideshow.js/

jquery.slideshow.js's People

Contributors

micheledef avatar

Watchers

James Cloos avatar  avatar

jquery.slideshow.js's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.