• 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>
    人如代码,规矩灵活;代码如诗,字句精伦。
  • 相关阅读:
    WeChat小程序开发(五、前端总结)
    前端实现复制到剪贴板
    vue的自定义指令含大写字母会失效
    如何把网页变成黑白
    原生JS offsetX和offsetY引起抖动
    jQuery中prop方法和attr方法区别
    Js for循环中的闭包 & let和var的混用对比
    html和body标签默认高度为0带来的影响
    JS字符串数组降维
    CSS浮动流脱标的字围现象
  • 原文地址:https://www.cnblogs.com/xinlinux/p/4153686.html
Copyright © 2020-2023  润新知