阅读背景:

平滑滚动到聚合物元素中的div

来源:互联网 

I am using the Polymer 1.0 tools to build a webapp and I am having trouble starting a smooth scroll to a specific div. I have success using the polymer method this.$.div.scrollIntoView() but this just moves to the specific div without scrolling to it. I would like to use the jQuery method scrollTop() but cannot seem to figure where to fire this function and when/how I can attach this function to a paper-fab. Here is what I have so far:I am using the Polymer 1.0 tools to build a web




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: