nckprsn / scrollme

A jQuery plugin for adding simple scrolling effects to web pages.
1.47k stars 318 forks source link

Issues with jquery 3.1.1? #42

Open acarlson777 opened 7 years ago

acarlson777 commented 7 years ago

@nckprsn anyone having issues getting this to work with v.3.1.1? I'm acquiring the files just fine, but nothing is animating. I'm a little fresh to jquery so its possible I'm making some minor mistake in my html. I've required both the jquery library and the scroll me plugin in my head tag. And at the bottom of the body I have the $(function()){}); to load the script. But the div I have decked out with the data attributes wont animate. I have everything set to the same parameters that are applied to the Usage section on the demo page (the light gray code box on the right that fades and slides in from the right is exactly what I'm trying to emulate. If anyone might spare a minute to help an eager noob I'd greatly appreciate it. Thanks!

screen shot 2017-04-03 at 11 42 06 am screen shot 2017-04-03 at 11 42 16 am
ganimo commented 7 years ago

I have the same problem. I think that is not compatible with jquery v.3.1.1. when I change to jquery v.2.1.1 work.

joeyfromspace commented 7 years ago

This is because scrollme uses $(window).load() which has been removed in jquery 3. It appears someone made a fork that addresses this here, though I've not tested the fix.

subhasisghosal commented 6 years ago

The fix is not working at all

hicugi commented 6 years ago

fixed:

replace on 123 // $window.load( function(){ setTimeout( function(){ _this.on_resize(); } , 100 ) }); $(document).ready( function(){ setTimeout( function(){ _this.on_resize(); } , 100 ) });

and on 447 // $document.on( _this.init_events.join( ' ' ) , function(){ _this.init(); } ); $('docuemnt').ready(function(){ _this.init(); });

kylejcorrigan commented 6 years ago

@hicugi fix works great! thanks!

joekendal commented 6 years ago

@hicugi have you tried making a PR?

hicugi commented 6 years ago

@joekendal PR? can you decipher?