简体   繁体   English

w3验证错误,带有elementTransitions.js

[英]w3 validation error with elementTransitions.js

I'm trying to use this transition plugin from http://dan-silver.github.io/ElementTransitions.js/ But it does not pass W3 validation process,it give me an error Attribute et-in not allowed on element article at this point and Attribute et-out not allowed on element article at this point is there any way to avoid this with jquery? 我正在尝试使用来自http://dan-silver.github.io/ElementTransitions.js/的此过渡插件,但它未通过W3验证过程,它给我一个错误, 属性错误输入在元素文章上网址 为这一点元素文章目前不允许的属性et-out是否有任何方法可以避免使用jQuery?

This is a code sample 这是一个代码示例

<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>

To make it work need to have et-in="moveFromTop" et-out="fade" within article class. 要使其工作,需要在文章类中添加et-in="moveFromTop" et-out="fade"

Thank you! 谢谢!

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. 将et-in和et-out更改为data-in和data-out,因为html5允许自定义数据变量。 And than change the elementTransitons.min.js function s(t, n) to work with data-in and data-out instead of et-in / out. 并且比更改elementTransitons.min.js函数s(t,n)来处理数据输入和数据输出而不是et-in / out。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM