Skip to content
A jQuery Slider plugin with specific animations for each element
CSS JavaScript
Find file

README.md

Animate Slider v1.0.5


A jQuery Slider plugin with specific animations effects for each element.

How it Works

The Animate Slider plugin uses some predefined animation classes (fadeIn,fadeOut,rotateIn,bounce,slideInRight etc.) found in jquey.animateSlider.css and adds them to each element on the slider. It also add classes with delay for each animation (delay1s,delay1-5s,delay2s etc.)

How to Start

Two quick start options are available:

How to use

In your web page:

<!-- plugin's css styles -->
<link rel="stylesheet" href="css/jquery.animateSlider.css">


<ul class="anim-slider">


    <li class="anim-slide">
       <!-- your content here -->
    </li>

    <li class="anim-slide">
        <!-- your content here -->
    </li>



    <!-- arrows -->
    <nav class="anim-arrows">
        <span class="anim-arrows-prev">
            <i class="fa fa-angle-left fa-3x"></i>
        </span>
        <span class="anim-arrows-next">
            <i class="fa fa-angle-right fa-3x"></i>
        </span>
    </nav>
    <!-- dynamically created dots -->

</ul>


<script src="js/jquery.js"></script>
<script src="js/modernizr.js"></script>
<!-- Load the plugin -->
<script src="js/jquery.animateSlider.js"></script>
<script>
        $(function()
        {
            $(".anim-slider").animateSlider();
        });
</script>

Options

Here's a list of available settings.

$(".anim-slider").animateSlider(
    {
        autoplay    :   true,   //starts the autoplay 
        interval    :   5000,   //time between slides if autoplay is true
        animations  :           //specify the animations for each element of the slide
        {
            0   :   //Slide No1
            {
                tagName :   //tagName or id or class name of the element  
                {
                   show         :   "fadeIn",   //class to add when the element appears
                   hide         :   "fadeOut",  //class to add when the element disappears
                   delayShow    :   "delay1s"   //class to add to delay show effect
                },
                "#id"   :
                {
                   show         :   "bounceIn",
                   hide         :   "bounceOut",
                   delayShow    :   "delay1-5s"
                },
                ".class":
                {
                   show         :   "rotateIn",
                   hide         :   "rotateOut",
                   delayShow    :   "delay2s" 
                }
            },
            1   :   //Slide No2
            {
                "#id"   :
                {
                   show         :   "bounceInDown",
                   hide         :   "bounceOutUp",
                   delayShow    :   "delay0-5s"
                },
                tagName :
                {
                   show         :   "slideInLeft",
                   hide         :   "slideOutRight",
                   delayShow    :   "delay1s"
                },
            }
        }     
    }
);

Examples

Check out the demo

Gredits

Animate Slider plugin is built on top of jQuery using Modernizr and Animate.css

License

Copyright (c) 2014 Vasileios Chouliaras
Licensed under the MIT license.

Something went wrong with that request. Please try again.