加入收藏 | 设为首页 | 会员中心 | 我要投稿 焦作站长网 (https://www.0391zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

css动态模糊效果

发布时间:2020-03-13 16:08:33 所属栏目:Linux 来源:站长网
导读:css动态模糊效果
实例效果:请把鼠标放上去看看

css动态模糊效果

第一步:把下面的脚本插入<head>与</head>之间:

<script>
function on(she){
girl=she
move=setInterval("moving(girl)",50)}

function off(she){
clearInterval(move)
she.filters.blur.strength=2 }

function moving(s){
if (s.filters.blur.strength<110)
s.filters.blur.strength+=5
else clearInterval(move)}

</script>

第二步:把下面的脚本插入<body>与</body>之间:

<p><a href="http://www.jb51.net/index.htm"><img src="http://www.jb51.net/article/c.jpg"

style="position:absolute;top:70;left:390;filter:blur(add=1,direction=80,strength=2)"

onMouseOver="on(this)"></a> </p>

(编辑:焦作站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读