admin管理员组

文章数量:1394146

I'm using the relative mode to start and end my animations using the Skrollr plugin (). Everything works great in IE but the animations are occurring early in Safari and Chrome and late in Firefox. I'm using data-bottom as my start point and data-center as my end point. So the animation should start right when the entire element just pops through the bottom of the viewport and should end at the center of the viewport.

Here is the website where you can see the animation occuring under div id="div56709" under the "Why Moms Ministry" section.

Any ideas on why the above issues are occurring would be greatly appreciated.

I'm using the relative mode to start and end my animations using the Skrollr plugin (https://github./Prinzhorn/skrollr). Everything works great in IE but the animations are occurring early in Safari and Chrome and late in Firefox. I'm using data-bottom as my start point and data-center as my end point. So the animation should start right when the entire element just pops through the bottom of the viewport and should end at the center of the viewport.

Here is the website where you can see the animation occuring under div id="div56709" under the "Why Moms Ministry" section.

http://group./womens-ministry/where-moms-connect

Any ideas on why the above issues are occurring would be greatly appreciated.

Share Improve this question asked Apr 4, 2013 at 1:03 SILENT_RUNSILENT_RUN 812 silver badges4 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

So the animation should start right when the entire element just pops through the bottom of the viewport

Well, not exactly. data-bottom is short for data-bottom-bottom and means when the bottom of the element is at the bottom of the viewport. What you describe is data-bottom-top.

I tried it in Firefox and Chrome and it looks as expected.

One thing you could try is calling refresh() on window.onload. This will recalculate the relative mode. Maybe when you call init() there are some images not loaded which move the content down (even though you explicitly set width and height on the img elements.)

Edit: In fact, I just verified that this is the problem. You can verify by hitting ctrl+f5 to force a reload. The animation will be off. If you now resize your browser (triggering refresh internally) it works.

本文标签: javascriptSkrollr Relative Mode Not Working Properly in Chrome or SafariStack Overflow