鼠标滑过波纹效果html代码,鼠标滑过图片的波纹效果

.set {

position:relative;

font-weight:400;

text-align:center;

width:200px;

/* change the width of canvas*/

height:200px;

/* change the height of canvas*/

line-height:200px;

overflow:hidden;

position:relative;

z-index:0;

color:#000000;

/* tetx color*/

background:#fafafa;

/* backgroud color*/

cursor:pointer;

/* background-image:url("http://www.jq22.com/img/cs/500x500-1.png");

put the backgroud image here*/

}

.anim {

-moz-transform:translateY(-50%) translateX(-50%);

-ms-transform:translateY(-50%) translateX(-50%);

-webkit-transform:translateY(-50%) translateX(-50%);

transform:translateY(-50%) translateX(-50%);

position:absolute;

top:50%;

left:50%;

z-index:-1;

}

.anim:before {

position:relative;

content:'';

display:block;

margin-top:100%;

background:#6CB1FF;

}

.anim:after {

content:'';

position:absolute;

top:0;

bottom:0;

left:0;

right:0;

border-radius:50%;

}

.hoverable:hover > .anim:after {

-webkit-animation:anim-out-pseudo 0.75s;

animation:anim-out-pseudo 0.75s;

}

.set:hover > .anim {

-webkit-animation:anim-out 0.75s;

animation:anim-out 0.75s;

}

@-webkit-keyframes anim-out-pseudo {

0% {

background:rgba(255,203,0,50);

/*ripple color and tranparent*/

}

100% {

background:transparent;

}

}@-webkit-keyframes anim-out {

0% {

width:0%;

}

100% {

width:100%;

}

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值