旋转角度 文字 css,Css3做的旋转显示文字和角度的变化

a7083a61f2dd741b6c9d142784b1625f.png

Css:

.spinner{

width:245px;

height:245px;

position:relative;

}

.coly{

border-radius:130px;

font-size:19px;

background:#333;

border:10px solid #ecab18;

border-right-color:#1ad280;

border-bottom-color:#1ad280;

width:230px;

height:230px;

-webkit-transition: all 0.8s ease-in-out;

-moz-transition: all 0.8s ease-in-out;

transition: all 0.8s ease-in-out;

}

.imgT{

position:absolute;

top: 10px;

left: 10px;

border-radius:120px;

width:230px;

overflow: hidden;

height:230px;

}

.spinner:hover .coly{

-webkit-transform: rotate(180deg);

-moz-transform: rotate(180deg);

-ms-transform: rotate(180deg);

-o-transform: rotate(180deg);

transform: rotate(180deg);

}

.info-back{

opacity: 0;

display: block;

width: 100%;

position:absolute;

top:0;

color:#fff;

height: 100%;

text-align: center;

-webkit-transition: all 0.8s ease-in-out;

-moz-transition: all 0.8s ease-in-out;

transition: all 0.8s ease-in-out;

}

.info-back:hover{

opacity:1;

}

.info-back h3{

color: #fff;

text-transform: uppercase;

position: relative;

letter-spacing: 2px;

font-size: 22px;

margin: 0 30px;

padding: 55px 0 0 0;

height: 55px;

text-shadow: 0 0 1px white, 0 1px 2px rgba(0, 0, 0, 0.3);

}

.info-back p{

color: #bbb;

padding: 10px 5px;

font-style: italic;

margin: 0 30px;

font-size: 12px;

border-top: 1px solid rgba(255, 255, 255, 0.5);

}

html代码:

2.jpg

Heading here

Description goes here

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值