zoukankan      html  css  js  c++  java
  • css3划过图片闪光

    css代码

    01 .img { display:blockpositionrelativewidth:800pxheight:450pxmargin:0 auto;}
    02 .img:before { content""positionabsolutewidth:200pxheight100%top0left:-150pxoverflowhidden;
    03 background: -moz-linear-gradient(left, rgba(255,255,255,0)0, rgba(255,255,255,.2)50%, rgba(255,255,255,0)100%);
    04 background: -webkit-gradient(linear, left topright top, color-stop(0%, rgba(255,255,255,0)), color-stop(50%, rgba(255,255,255,.2)), color-stop(100%, rgba(255,255,255,0)));
    05 background: -webkit-linear-gradient(left, rgba(255,255,255,0)0, rgba(255,255,255,.2)50%, rgba(255,255,255,0)100%);
    06 background: -o-linear-gradient(left, rgba(255,255,255,0)0, rgba(255,255,255,.2)50%, rgba(255,255,255,0)100%);
    07 -webkit-transform: skewX(-25deg);
    08 -moz-transform: skewX(-25deg)
    09 }
    10 .img:hover:before { left150%; transition: left 1s ease 0s; }

    html代码

    01 <a href="#" class="img"><img src="http://img.loveqiao.com/pic1.jpg" width="800"></a>
     
    全部教程http://each.sinaapp.com/angular/index.html
  • 相关阅读:
    洛谷P1199三国游戏
    Cracking the Coding Interview 6.2
    Cracking the Coding Interview 5.2
    Cracking the Coding Interview 5.7
    洗牌算法
    字符串排列组合问题
    指针作为形参
    KMP算法代码
    搜索二叉树
    面试题集锦
  • 原文地址:https://www.cnblogs.com/xfdmb/p/6004742.html
Copyright © 2011-2022 走看看