Giter Site home page Giter Site logo

rad1caldreamer / jquery.animateslider.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vchouliaras/jquery.animateslider.js

0.0 2.0 0.0 3.18 MB

A jQuery Slider plugin with specific animations for each element

Home Page: http://vchouliaras.github.io/jquery.animateSlider.js/

License: MIT License

JavaScript 40.06% CSS 59.94%

jquery.animateslider.js's Introduction

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.

jquery.animateslider.js's People

Contributors

vchouliaras avatar

Watchers

James Cloos avatar Andrei Kornev avatar

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.