给一个div加动画为什么实现不了,详情请看代码

css:
.flightNumber{

  display: none;

-moz-transition: opacity 2000ms ease-in-out;

-o-transition: opacity 2000ms ease-in-out;

-webkit-transition: opacity 2000ms ease-in-out;

/*transition: opacity 2000ms ease-in-out;

opacity: 0;

}

.runIn{

-moz-transition: opacity 2000ms ease-in-out;

-o-transition: opacity 2000ms ease-in-out;

-webkit-transition: opacity 2000ms ease-in-out;

/*transition: opacity 2000ms ease-in-out;*/

opacity: 1;

display: block;

}

html代码:<div class='flightNumber'></div>
js代码:$(".flightNumber").addClass("runIn")

慕哥9229398
浏览 433回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript