Git Product home page Git Product logo

jquery.flader's Introduction

jQuery.Flader

A smooth slider / fader

jQuery Flader is a plugin who can use as dependencies jQuery Transit to perform css3 transition. Slide can fade or slide, it can perform auto sliding / fading and have a custom mousehold event

Dependencies

jQuery (last version as possible) jQuery Transit (optional but smoother animation!)

Usage

<!doctype html>
<html>
    <head>
		<link rel=stylesheet href='flader.css'><!-- base css -->
		<script src='jquery.js'></script>
		<script src='jquery.transit.js'></script><!-- if you want css3 animation -->
		<script src='jquery.flader.js'></script>
	</head>
	<body>
		<div id="fader">
			<ul data-function="slider_content">
				<li data-function="slider_item"><p>content</p></li>
				<li data-function="slider_item"><p>content</p></li>
			</ul>
		</div>
		<div id="slider">
			<ul data-function="slider_content">
				<li data-function="slider_item"><p>content</p></li>
				<li data-function="slider_item"><p>content</p></li>
				<li data-function="slider_item"><p>content</p></li>
			</ul>
		</div>
		<script>
		$(function(){
			$('#fader').Flader({
				slide_type: 'fade'
			});
			$('#slider').flader();
		});
		</script>
	</body>
</html>

Options

btns_classe {String}

Custom class for nav buttons Default: ''

wrap_classe {String}

Custom class for btn wrap Default: ''

slide_type {String}

Slide type of the slider ( 'slider' or 'fade' ) Default: 'slide'

speed {Integer} ms

Animation Speed in millisecond Default: 500

easing {String}

Easing of the animation, can support all the easing supported by Jquery.transit Default: ''

mouse_event {String}

Mouse event who performe the slide support a custom event 'mousehold' who let the slide continue when mouseclick maintained In mousehold, easing will be 'linear' Default: 'click'

cycling_slide {Boolean}

Define if sliding infinitely Only in slide mod Autoslide disabled when set to false due to the ugly effect if return to first/last slide item. Default: 5000

auto_slide {Boolean}

When set at true, the slider will perform an autoslide every each @auto_slide_delay Default: false

auto_slide_delay {Integer} ms

Delay between each auto slidein millisecond Default: 5000

onSlide {Function} (items_sliding)

callback launch when slide performed, can be used to animate inside the next slide

items_sliding {Object} ['current': $(elm), 'follow': $(elm)]
The current slide item and the next item displayed, jquery objects

jquery.flader's People

Contributors

yimiprod avatar

Stargazers

 avatar

Watchers

 avatar  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.