-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Description
Hi there!
Thanks again for this great plugin. However today I found an unexpected kind of behaviour.. Here I explain it a bit more.
So my issue is relatively simple. I have a few auto-height section in my page and I have some animations going on in the afterLoad() callback..
So basically, in order to avoid these animations to load in case I load the section 4(ie) first, I replace the active tag in the correct html element (section) on the afterRender() callback. Otherwise animations for section 1 would be triggered anyway.
However, and weirdly enough, the section then snaps to the top of the screen and not to the bottom of the screen...which is what I want obviously :/
So my question is, is there a way to avoid that behaviour?
I have a codepen here: http://codepen.io/DanDvoracek/pen/Yyvrza
Copy paste the code in a single html file to see what I mean as the history can't be seen on codepen...
In the demo I provide, try removing the active class on the second section and try load the #txt route. See the behaviour with and without the active tag..
Is there any way we can change it to snap at the bottom?
Thanks in advance,