javascript - Skrollr Relative Mode Not Working Properly in Chrome or Safari - Stack Overflow

I'm using the relative mode to start and end my animations using the Skrollr plugin (). Everything

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744764351a4592364.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信