zoukankan      html  css  js  c++  java
  • 一个简单版的波纹css3动画

    ul{ 300px;border: red;}
    ul li{ 300px;height: 70px;line-height: 70px;background: #fff;text-align: center;cursor: pointer;overflow: hidden;border: 1px solid #eee;}
    ul li:hover .circle{
        animation: circle-opacity 0.5s linear 0s 1;
        -webkit-animation-fill-mode:forwards;/*让动画停在最后是这个属性,*/
        animation-fill-mode:forwards;
    }
    ul li a{position: relative;left: -50px;color: #333;top: -30px;}
    .circle{background: #fff;border-radius: 50%; 70px;height: 70px;display: inline-block;margin: 0 auto;}

    @keyframes circle-opacity{
        0% {
            background: rgba(192,225,250,0);
        }
        50% {
            transform:scale(4);
            background: rgba(192,225,250,1);
        }
        100% {
            transform:scale(16);
            background: rgba(192,225,250,0);
        }
    }

    <ul class="clear">
        <li><span class="circle"></span><a href="#">Button</a></li>
        <li><span class="circle"></span><a href="#">Elements</a></li>
        <li><span class="circle"></span><a href="#">Forms</a></li>
        <li><span class="circle"></span><a href="#">Charts</a></li>
    </ul>

  • 相关阅读:
    第二十七天笔记
    hdoj 1024
    poj 2253
    超水的一道最短路poj2387
    打算要做的题目
    poj 3128 关于置换群的规律
    poj 1721
    poj 1026 置换的应用(小试牛刀)
    置换的一项运用 poj3270
    Codeforces Round #483 (Div. 2) D. XOR-pyramid dp的应用
  • 原文地址:https://www.cnblogs.com/koleyang/p/5478378.html
Copyright © 2011-2022 走看看