CodeHunger / Jarallax

Parallax scrolling library javascript
GNU General Public License v2.0
165 stars 20 forks source link

Jerking animation when object moves in the same direction as scroll #33

Open thevasya opened 11 years ago

thevasya commented 11 years ago

This happens in Chrome and Opera and does not happen in Firefox. When some object is moved down by Jarallax at similar speed with scrollbar the animation for this object is jerking.

So, when you scroll down it affects any object which has a rule like:

jarallax.addAnimation('.some-object',
                        [{progress:'0%', top: '0px'},
                        {progress:'10%', top: '100px'},
                        {progress:'100%', top: '100px'}]);

And everything is fine for objects moving in opposite direction:

jarallax.addAnimation('.some-object',
                        [{progress:'0%', top: '100px'},
                        {progress:'10%', top: '0px'},
                        {progress:'100%', top: '0px'}]);
tolchai commented 11 years ago

I am experiencing the same issues. Is there any solution for this?

tolchai commented 11 years ago

OK, problem solved - it turned out, there were two objects with the same class.

CodeHunger commented 11 years ago

I'm glad you have solved your own problems. :P

Could you send me a link of your webpage when its done?

On Fri, Mar 22, 2013 at 2:40 PM, tolchai notifications@github.com wrote:

OK, problem solved - it turned out, there were two objects with the same class.

— Reply to this email directly or view it on GitHubhttps://github.com/CodeHunger/Jarallax/issues/33#issuecomment-15296949 .