【发布时间】:2015-12-04 20:06:16
【问题描述】:
我正在尝试学习 Polymer。目前,我有一个自定义元素需要在一些纸张中为内容设置动画。为了尝试做到这一点,我目前有以下内容:
<paper-material elevation="4">
<h4>Hello</h4>
<neon-animated-pages selected="0" entry-animation="slide-from-right-animation" exit-animation="slide-left-animation">
<div>
Thank you for visiting. I think you'll enjoy what you're
gonna find. To dive in, click the "Next" button.
<br />
<paper-button>Next</paper-button>
</div>
<div>
some more information
</div>
</neon-animated-pages>
</paper-material>
奇怪的是,neon-animated-pages 元素中的内容没有在纸张中正确呈现。我在下面包含了一个屏幕截图,显示了它是如何呈现的。
我做错了什么?
【问题讨论】: