-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jumping pinned element #10
Comments
Hi pgorny, when I look at the script the top position of the pinned element does indeed fluctuate.
Now try again. regards, |
Hi, |
Hi, regards, |
Hi Piotr, so from what I have researched the reason for this issue is a different handling of SVG to regular elements in firefox when using getBoundingClientRect. This is really weird and I think this is what causes the position calculation to be off in firefox. Is it possible for you to supply a stripped down version of your page so I can try to debug it? regards, |
If anyone else is experiencing this bug and wants to help me debug it, please contact me. |
Hi @pgorny, I've done a good bit SVG with ScrollMagic recently and willing to take a look at this bug. The url in your original post is now dead so I'm not 100% certain of the issue itself. Did you ever get a stripped down version to help debug this issue? Anything you could recommend me trying to recreate it? |
Oh hi Anthony I'm very busy this week, but have planned to create an example page during next weekend (15th-16th). |
Hi Piotr, A stripped down version would be great to debug this! :) regards, |
Hi. I have met same issue with jumping pinned elements in Safari Browser(Version 7.0.2 (9537.74.9) ) Mac OSX 10.9.2 Video - http://screencast.com/t/tBrhonQYmeU (Unfortunately, video doesn't show the glitch) Thank you. |
Hi Vitali, thank you for your detailed investigation. What you are describing is a small delay in safari before the pinned element is actually pinned, whereas in chrome it works fluently. I'm afraid this is not really a ScrollMagic bug, but has to do with how the browsers redraw the content. Fixing and unfixing elements is something that wasn't really foreseen by the creators of the browsers. While Chrome and Firefox seem to handle it well though, in Safari it takes some milliseconds to render the changes. So I'm sorry to say that the only way you can go about it, is to write an outraged mail to Apple saying "I though safari was so great... now look at this and fix it!". No but really: There's not much you can do. :-/ regards, |
I am facing this issue on Chrome with ScrollMagic v2.0.5 It is actually weird, that the issue is only on two of four pinned element. |
@hatchbee please post as a separate issue, with example |
@hatchbee -- are the elements that are experiencing the jumping inside a container with top padding? I just experienced this with something like: <main>
<h2>Pin this!</h2>
</main>
</pre> And |
@MaxEdison I couldn't remember what was the actual issue was, but I did re-worked on the pinning thing and the issue was resolved. Not sure why it was flickering and jumping the element when the pinning starts. |
Not sure if problem I experienced has the same roots as the one reported in OP, but in my case pinned element still jumps sometimes if I move out of the scene and then scroll back in. It happens because currently When we jump past the start/end point of the scene, element is getting unpinned correctly, but its container stucks with offset from the last time scene was updated while it was active. Once we start moving back and enter the scene again, Scrollmagic recalulates styles for pined element and one of the paddings getting changed to 0, resulting in element make a significant jump to the position where it's supposed to be. This is the guilty part
We also need to make sure here that Here's a pull request with a fix. #443 |
I am facing issue in chrome on mac while scrolling. If the cursor position is on top of the screen the scrolling stops working. Can someone help me fixing the issue? Thanks in advance. url of my website - http://jproductions.in/ |
@smWtf I'm facing the same issue in chrome on mac : "pinned element still jumps sometimes if I move out of the scene and then scroll back in." |
I have found a hacky solution. I'm animating a large background svg with svg objects on top of the BG. Everything is animated with a gsap timeline. If I have a time in the timeline without movement then start a movement most everything jumps. My solution was to have a little object animate throughout the entire timeline. tl_mine.to(keepmoving, 110, {css: {x: 2}}, '0'); worked for me. |
Hi
firstly I'd like to thank you for a great job with this library! I've tried a few other libraries and found yours the easiest and most intuitive to use. I'm building a website, where I've got a chemical apparatus in SVG with simple animation - just revealing and hiding particular elements, while scrolling.
I've pinned my SVG and I do the animation on the scroll, having the SVG in the middle of a page. Unfortunately what I observe is that in Chrome, IE11 and Opera it works great, but in Firefox the pinned element jumps while scrolling - it moves up and down by a few pixels. It's very likely I do something wrong, but I would appreciate if you could point me to my mistake. Or maybe there's something with the library...
Please have a look at this page: http://magdalenakrzys.pl/beta/ if you don't mind helping me. Please bear in mind that the page is still being developed, so there might be some flaws :-)
Thank you in advance.
The text was updated successfully, but these errors were encountered: