Mirco-jumps when using scrollTop jquery animation?

Ok, the problem is this line: window. Location = '#page' + id by changing the hash-tag the page jumps to the specified element, then the jQuery kicks in and animates to the same ID. I tried around a little and my final version is this: jsfiddle.net/h6CS4/6 though it's not great...

Up vote 0 down vote favorite share g+ share fb share tw.

I have a problem with the scrollTop jquery animation. It micro-jumps right before the animation. The heavier the content is, worst it is.

I don't understand why does it do that... Below, a sample of my code. (just copy/paste on file, it's a standalone code, I hadn't good result on jsfiddle) Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 The content is not that heavy so it's hard to see the bug. Firefox make it easier to see and quick scrolling too.

I'm waiting your good advises. :) javascript jquery html5 mousewheel scrolltop link|improve this question edited Feb 10 at 13:57 asked Feb 9 at 13:50Nyro32.

– Jörn Berkefeld Feb 10 at 8:44 Tested on Windows seven with Chrome and Firefox. (both at last version) I also tested it on the ipad 1 and 2. (same bug...) It blinks fast when scrolling with a lite wieght content as I posted.

And Chrome makes it hader to see because of its optimisation. ^^ – Nyro Feb 10 at 13:55 I copied the code to jsFiddle: jsfiddle.net/h6CS4/1 - looks kinda funny to be honest ^^ – Jörn Berkefeld Feb 12 at 12:45 here the direct-link to the iFramed content: fiddle.jshell.net/h6CS4/1/show – Jörn Berkefeld Feb 12 at 12:52 That doesn't scroll smoothly to me. XD My pc is not comfortable at all with jsfiddle it seems.

– Nyro Feb 12 at 14:50.

Ok, the problem is this line: window. Location = '#page' + id; by changing the hash-tag the page jumps to the specified element, then the jQuery kicks in and animates to the same ID. I tried around a little and my final version is this: jsfiddle.net/h6CS4/6/ though it's not great... try this plugin instead of re-inventing the wheel: flesler.blogspot.com/2007/10/jqueryscrol....

You're exaclty right and I'm stupid... Thanks a lot! I finally used a (dirty) global var that I update after scrolling. I prefer to re-invent the wheel when it's possible.

(I must use too many heavy plugins) – Nyro Feb 12 at 17:33.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions