码迷,mamicode.com
首页 > Web开发 > 详细

Html animation by css(Sequence Js Tutorial)

时间:2018-01-20 15:06:44      阅读:209      评论:0      收藏:0      [点我收藏+]

标签:rac   ini   http   number   tran   article   const   body   tis   

In sequence js,the javascript make load css definitation and make animation.

1.Start state

#sequence  .slide-content {
    z-index:2;
    left:100%;
    font-size:100px;
    opacity: 1;
    color: #000;
    width:100%;

}

2.Medium state(constant)

/*Medium &constant state*/
#sequence .animate-in .slide-content {
    z-index:2;
    width:100%;
    left:0%;
    opacity: 1;
    color:#fff;
    -webkit-transition-duration: 1s;
    -moz-transition-duration: 1s;
    -ms-transition-duration: 1s;
    -o-transition-duration: 1s;
    transition-duration: 1s;
}

3.Final and exit state

/*end state */
#sequence .animate-out .slide-content {
    z-index:1;
    color: white;
    left:-100%;
    opacity: 1;
    width:100%;
    -webkit-transition-duration: 1s;
    -moz-transition-duration: 1s;
    -ms-transition-duration: 1s;
    -o-transition-duration: 1s;
    transition-duration: 1s;
}

Result:

Html animation by css(Sequence Js Tutorial)

标签:rac   ini   http   number   tran   article   const   body   tis   

原文地址:https://www.cnblogs.com/zhchoutai/p/8320579.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!