Giter Club home page Giter Club logo

Comments (6)

Mottie avatar Mottie commented on May 27, 2024

Can you elaborate?... There is already a "slide_complete" event that is triggered after the animation is complete. Did you mean something else like actually adding a function inside the script?

from anythingslider.

jacdebug avatar jacdebug commented on May 27, 2024

Something similar to this "$.event.trigger('slide_complete');" is already there, but we need to set bind eveytime, a better way to do this, passing a function as anythingslider parameters so as users can pass fucntion or can bind for the event.

Then the init will have an extra parameter like this..
$('.anythingSlider').anythingSlider({
slideComplete: function () { alert('tween ends'); }
});

Also we need to add following function call in js file, where the event triggers
if(base.options.slideComplete) { base.options.slideComplete.call(); }

from anythingslider.

Mottie avatar Mottie commented on May 27, 2024

Hi Deepak-jacob!

Ok, in the latest version, I've added callback functions. It is slightly different from what you posted here - see the documentation for more details.

from anythingslider.

jacdebug avatar jacdebug commented on May 27, 2024

This is an usablity factor users can pass function directly when they initilizing the slider itself. Now users need to write an extra block for bind event right?

from anythingslider.

Mottie avatar Mottie commented on May 27, 2024

Hi Deepak-jacob!

Nope, the callbacks are now part of the slider initialization. ProLoser hasn't updated his version yet, so get it from my github page - http://github.com/Mottie/AnythingSlider

from anythingslider.

jacdebug avatar jacdebug commented on May 27, 2024

Dear Mottie,
I find it in your page, good work.

from anythingslider.

Related Issues (20)

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.