【发布时间】:2015-07-21 10:41:14
【问题描述】:
我已经尝试完成this 大约两个星期了。这里有没有人知道如何做到这一点?我什至不会粘贴我的代码,因为这是有史以来最糟糕的。
谢谢。
【问题讨论】:
-
也有点像google.com/inbox
-
修复了小标点问题。
标签: animation fullpage.js eventtrigger
我已经尝试完成this 大约两个星期了。这里有没有人知道如何做到这一点?我什至不会粘贴我的代码,因为这是有史以来最糟糕的。
谢谢。
【问题讨论】:
标签: animation fullpage.js eventtrigger
你检查fullpage.js了吗?
您可以通过使用 CSS Easing Animation Tool of Matthew Lein 创建自己的 CSS3 函数来获得相同的滚动效果。
然后将其传递给fullPage.js的参数easingcss3。
easingcss3: 'cubic-bezier(1.000, 0.000, 0.000, 1.005) 0.5s',
或者,如果您愿意,可以选择jQuery easing effects 并使用css3:false。 (虽然用css3会更流畅)
关于在滚动时消失的元素,您必须通过在诸如onLeave 之类的回调上为它们设置动画或使用添加到主体的类作为in this example 自行完成。
body.fp-viewing-page2-slide1 #section1 .moveOut{
transform: translate3d(0, -400px, 0);
}
this line 中的某些内容。
【讨论】: