java rotatetransition_CSS3平滑过渡transition

CSS3平滑过渡transition

#timings-demo {

border: 1px solid #ccc;

padding: 10px;

height: 400px;

width: 400px;

}

.demo-box {

width: 100px;

height: 50px;

text-align: center;

line-height: 50px;

text-align: center;

color: #fff;

background: #96c;

-moz-border-radius: 5px;

-webkit-border-radius: 5px;

border-radius: 5px;

-moz-box-shadow: inset 0 0 5px rgba(102, 153, 0,0.5);

-webkit-box-shadow: inset 0 0 5px rgba(102, 153, 0,0.5);

box-shadow: inset 0 0 5px rgba(102, 153, 0,0.5);

margin-bottom: 10px;

}

#ease {

-moz-transition: all 5s ease 0.3s;

-webkit-transition: all 5s ease 0.3s;

-o-transition: all 5s ease 0.3s;

transition: all 5s ease 0.3s;

background: #f36;

}

#ease-in{

-moz-transition:all 3s ease-in 0.5s;

-webkit-transition: all 3s ease-in 0.5s;

-o-transition:all 3s ease-in 0.5s;

transition:all 3s ease-in 0.5s;

background: #369;

}

#ease-out{

-moz-transition:all 5s ease-out 0s;

-webkit-transition:all 5s ease-out 0s;

-o-transition:all 5s ease-out 0s;

transition:all 5s ease-out 0s;

banckground:#636;

}

#ease-in-out{

-moz-transition: all 1s ease-in-out 2s;

-webkit-transition: all 1s ease-in-out 2s;

-o-transition: all 1s ease-in-out 2s;

transition: all 1s ease-in-out 2s;

background: #3e6;

}

#linear{

-moz-transition:all 6s linear 0s;

-webkit-transition:all 6s linear 0s;

-o-transition:all 6s linear 0s;

transition:all 6s linear 0s;

background: #999;

}

#cubic-bezier{

-moz-transition: all 4s cubic-bezier 1s;

-webkit-transition: all 4s cubic-bezier 1s;

-o-transition: all 4s cubic-bezier 1s;

transition: all 4s cubic-bezier 1s;

background: #6d6;

}

.timings-demo-hover,#timings-demo:hover .demo-box{

-moz-transform: rotate(360deg) scale(1.2);

-webkit-transform:rotate(360deg) scale(1.2);

-moz-transform: rotate(360deg) scale(1.2);

transform:rotate(360deg) scale(1.2);

background: #369;

border: 1px solid rgba(255,230,255,08);

-moz-border-radius: 25px;

-webkit-border-radius: 25px;

border-radius: 25px;

margin-left: 280px;

height: 30px;

line-height: 30px;

margin-bottom: 15px;

}

click

Ease
Ease-in
Ease-out
Ease-in-out
Linear
Cubic-bezier
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值