Giter Site home page Giter Site logo

piccarousel.js's Introduction

PicCarousel

A jQuery plugin that achieve to effect of Photo Carousel.

Demo

Quick start

include the files

<link rel="stylesheet" href="css/style.css">
<script src="jquery.min.js"></script>
<script src="PicCarousel.min.js"></script>

call the the plugin on a container as your wish

<script>
$("#TagName").PicCarousel();
</script>

All done!

Options

you can custom the caption by passing options when call the plugin, all available options are listed below.

call the the plugin on a container wish you wish.

$("#TagName").PicCarousel({
    option: value,
    option2: value2,
    ...
});
Option default Description
width 1000 Define the width of container.
height 300 Define the height of container.
posterWidth 520 Define the width of the first Photo . Maintain height and width of source image.
posterHeight 300 Define the height of the first Photo. Maintain height and width of source image.
scale 0.9 Define the show scale.
speed 300 Define the speed of the photo carousel.
autoPlay 'false' A boolean to define whether support automatic play.
delay 500 Define the delay of automatic play.
verticalAlign 'middle' Define position of photo.

Browser Support

IE Chrome Firefox Opera Safari
IE 7+ ✔ Chrome ✔ Firefox ✔ Opera ✔ Safari ✔

License

Licensed under the MIT License

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.