zoukankan      html  css  js  c++  java
  • Css3做的旋转显示文字和角度的变化

        
    Css:


    .spinner{
    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;
    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;
    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;
    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代码:


    <div class="spinner"> <div class="coly"> </div> <div class="imgT"> <img src="http://www.gbtags.com/gb/networks/uploads/0f8c4c4d-f612-4476-bfa4-fa49a461fb08/ihover-gh-pages/dist/images/assets/2.jpg"/> </div> <div class="info-back"> <h3>Heading here</h3> <p>Description goes here</p> </div> </div>
    人如代码,规矩灵活;代码如诗,字句精伦。
  • 相关阅读:
    office 2007
    关于网站爬虫的爬取
    华为交换机默认密码大合集
    一些不错的网站工具箱
    HDU 2023 求平均成绩
    HDU 2056 Rectangles
    HDU 2022 海选女主角
    HDU 2045 不容易系列之(3)—— LELE的RPG难题
    HDU 2042 不容易系列之二
    HDU 2044 一只小蜜蜂...
  • 原文地址:https://www.cnblogs.com/xinlinux/p/4153686.html
Copyright © 2011-2022 走看看