0

我正在尝试使用来自http://dan-silver.github.io/ElementTransitions.js/的转换插件, 但它没有通过 W3 验证过程,它给我一个错误Attribute et-in not allowed on element article at此时元素文章上不允许使用这一点和Attribute et-out有没有办法用 jquery 来避免这种情况?

这是一个代码示例

<article class="et-wrapper et-rotate" **et-in="moveFromTop" et-out="fade"**>
                    <div class="et-page features-box">
                       <i class="fa fa-bookmark-o"></i> 
                       <h3>Click This Box</h3>
                       <p>Now that we know who you are, I know who I am. I'm not a mistake! It all makes sense! </p>
                    </div>
                    <div class="et-page  features-box">
                       <p>Now that we know who you are, I know who I am. I'm not a mistake! It all makes sense! </p>
                       <p><a href="#" class="btn btn-green">View More</a></p>
                    </div>
                 </article>

为了使它工作需要et-in="moveFromTop" et-out="fade"在文章类中。

谢谢!

4

1 回答 1

0

I've done a slight rework in the script here. Change et-in and et-out to data-in and data-out, as html5 allows custom data- variables. And than change the elementTransitons.min.js function s(t, n) to work with data-in and data-out instead of et-in / out.

于 2014-02-17T10:09:59.997 回答