TypechoJoeTheme

Dcr163的博客

统计

圆角按钮div边框动态效果

2018-07-28
/
0 评论
/
853 阅读
/
正在检测是否收录...
07/28
<style>
            .ripple-content{
                margin:50px;
                position: relative;
            }
            .ripple{
                position: absolute;
                width:46px;
                height:46px;
                line-height: 46px;
                text-align: center;
                background: #333;
                color:#FFF;
                border-radius: 50%;
            }
            .ripple-border{
                z-index: -1;
                opacity:0;
                -webkit-transform:scale(1);
                transform:scale(1);
                -webkit-animation:pan-ripple 1s linear infinite;
                 animation:pan-ripple 1s linear infinite; 
            }
            @-webkit-keyframes pan-ripple {
            0% {-webkit-transform:scale(1);opacity:0;}
            30% {-webkit-transform:scale(1.1);opacity:1;}
            100% {-webkit-transform:scale(1.3);opacity:0;}
        }

        </style>
       <div class="ripple-content">
            <div class="ripple ripple-text">边框</div>
            <div class="ripple ripple-border"></div>
        </div>


效果如下图所示:

朗读
赞(0)
版权属于:

Dcr163的博客

本文链接:

http://dcr163.cn/184.html(转载时请注明本文出处及文章链接)

评论 (0)

人生倒计时

今日已经过去小时
这周已经过去
本月已经过去
今年已经过去个月

最新回复

  1. slot mpo terbaru
    2025-02-08
  2. Sherry Stockdill
    2025-01-28
  3. slot demo
    2025-01-13
  4. 陌天
    2025-01-09
  5. Kerrie Bostick
    2024-12-28

标签云