Comments (6)
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.
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.
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.
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.
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.
Dear Mottie,
I find it in your page, good work.
from anythingslider.
Related Issues (20)
- FX demos aren't working HOT 2
- Slider height collapses by removing height from container class HOT 4
- Video demo doesn't work HOT 3
- Can't just use CSS HOT 2
- html5 video slider issue HOT 2
- Photos are being rotated HOT 4
- resizeContents false does not leave division at constant height HOT 6
- Metallic.css breaks slide show button HOT 2
- iframe not scrolling on iPad HOT 2
- Play button not Visible on IPad HOT 3
- jQuery .data() values are lost in cloned elements HOT 4
- JW Player is not working HOT 2
- Loading issue HOT 4
- undefined error when infiniteSlides = false and showMultiple = X HOT 2
- Can't get slider working... HOT 2
- Slider take a delay after video playing is complete HOT 4
- Single Video playing issue HOT 3
- jQuery 3 compatibility
- issue with window.location HOT 1
- Image stacking when using https:// HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anythingslider.