发布作者: 贝塔
百度收录: 正在检测是否收录...
最后更新: 2024年 01月 26日 13:41
作品采用: 《 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 》许可协议授权
一个简单的 css ➕ js
/*躲猫猫*/
#maomao {
position: fixed;
bottom: 40px;
right: -5px;
width: 57px;
height: 70px;
background-image: url(//lib.hackeus.cn/static/svg/mao.svg);
background-position: center;
background-size: cover;
background-repeat: no-repeat;
transition: background .3s;
}
#maomao:hover {
background-position: 60px 50%;
}...
<!--躲猫猫-->
<div id="maomao" onmouseout="duoMaomao()">
<input type="button" onclick="autoPlay()" hidden="true">
</div>...
—— 评论区 ——