You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, at the moment there is no specific callback when it is initialized,
but you can, as sakshamsaxena said, use the onscroll callback, wich is called everytime when the user scrolls up or down.
If you want to run a specific code only one time (at the beginning), you can use a flag to do that, such as:
var flag = true;
$.jInvertScroll(....., onScroll: function(perc) {
if(flag == true) {
// do whatever you want
flag = false;
}
});
If you need further assistance, do not hesitate to ask! ;-)
Is there a callback available once it has been initialized?
The text was updated successfully, but these errors were encountered: