Giter Site home page Giter Site logo

rajputvishal / jquery-carousel Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 451 KB

This plugin helps you quickly create carousel with more configurable options.

Home Page: https://rajputvishal.github.io/jquery-carousel/

JavaScript 79.59% HTML 19.70% CSS 0.71%
javascript-plugin jquery-plugin

jquery-carousel's Introduction

jquery-carousel

Features

Dependencies: Jquery.

Advance carousel is a simple and superfast plugin to make a "wizard" or a just a caraousel with more customizable options such as where you need to perform operations on create or on moving backward / forward or on loading or unloading of a slide.

Demo

you may access the demo page here: https://rajputvishal.github.io/jquery-carousel/

How to use

  • Include "jquery.carousel.js" in your html but make sure you add it after Jquery source files.

  • Once that's done its time to make use caraousel.

  • In your javascript file call "advCarousel" function on the element inside which you want to create the carousel.

  • Supply the set of options to the "advCaraousel" function to let it know how many slide do you want to create and what do you want to do on while moving forward and backward. example:

       $("#myCaraousel").advCarousel({
      		 items: [{
      		class: "slide1", //class for slide1 
      		next: {
      			enabled: true,
      			 nextItem: ".slide2", //selector for next slide
      			class: "next button class", //class that you wan to be added on next button
      			onNext: function(data, superCallback, ref) {
      				console.log("moving forward");
      				//change the data here if you need and call supercallback if to allow moving forward
      				superCallback.apply(ref, [data]);
      			}
      		},
      		onLoad: function(currentSlide, oldSlide) {
      			//code for handling on onload of current slide goes here.
      			//here you can call functions like gettting data from old slide that you want to use 
      			//in current slide.
      		},
      		onUnLoad: function(currentSlideData, nextSlideData) {
      			console.log("unloaded slide1")
      		},
      		prev: {
      			enabled: false, // as there is no slide to go back from slide 1
      		},
      	}],
       });
    

###End

jquery-carousel's People

Contributors

rajputvishal avatar

Watchers

 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.