• css实现鼠标移上去变大,旋转,转别人的额


    <!doctype html>
    <html>
    <head>
      <meta charset="utf-8">
      <title>CSS3鼠标滑过图标放大旋转动画DEMO演示</title>
      <style type="text/css">
      *{margin:0px;padding:0px;}
      #nav{980px;height:350px;margin:50px auto;}
      #nav ul li{list-style:none;background:rgba(0,0,0,.5);height:105px;180px;float:left;margin:60px 5px;position:relative;}  
      #nav ul li:before{
        content:"";height:105px;180px;background:rgba(0,0,0,.5);position:absolute;top:0px;left:0px;
        transform:rotate(60deg);
        -webkit-transform:rotate(60deg);
        -moz-transform:rotate(60deg);
      }
      #nav ul li:after{
        content:"";height:105px;180px;background:rgba(0,0,0,.5);position:absolute;top:0px;left:0px;z-index:1;
        transform:rotate(-60deg);
        -webkit-transform:rotate(-60deg);
        -moz-transform:rotate(-60deg);
      }
      #nav ul li.mar{margin-left:100px;}
      #nav ul li img{
        top:0px;left:0px;right:0px;bottom:0px;margin:auto;z-index:2;position:absolute;
        transition:1s;
        -webkit-transition:1s;
        -moz-transition:1s;
      }
      #nav ul li img:hover{
        -webkit-transform:rotate(360deg) scale(1.2); 
        -moz-transform:rotate(360deg) scale(1.2);
        -ms-transform:rotate(360deg) scale(1.2);
        -o-transform:rotate(360deg) scale(1.2);
      }
      </style>
    </head>

    <body>

    <div id="nav">
      <ul>
        <li><img src="images/1.png"/></li>
        <li><img src="images/2.png"/></li>
        <li><img src="images/3.png"/></li>
        <li><img src="images/4.png"/></li>
        <li><img src="images/5.png"/></li>
        <li class="mar"><img src="images/1.png"/></li>
        <li><img src="images/7.png"/></li>
        <li><img src="images/8.png"/></li>
        <li><img src="images/9.png"/></li>
        <li><img src="images/10.png"/></li>
        <li><img src="images/11.png"/></li>
        <li><img src="images/12.png"/></li>
        <li><img src="images/13.png"/></li>
        <li><img src="images/14.png"/></li>
      </ul>
    </div>

    </body>

    </html>

  • 相关阅读:
    笔记本无线网卡和有线网卡同时用及网络知识回顾总结
    DSPack初次使用小结
    常见加解密算法及Delphi应用程序图标总结
    Delphi窗体创建释放过程及单元文件小结
    怪异的JavaScript的Case语句
    交换机与路由器的区别
    DirectShow学习笔记总结
    Git的提交与查看差异
    Laravel 5使用Laravel Excel实现Excel/CSV文件导入导出的功能详解
    laravel5的Bcrypt加密方式对系统保存密码的小结
  • 原文地址:https://www.cnblogs.com/qiuchunxia/p/5920249.html
Copyright © 2020-2023  润新知