Loading... <p><img src="https://www.xxhzm.cn/usr/uploads/2021/09/1367403599.gif" alt="20210920222225.gif" title="20210920222225.gif"style=""><br>动画使用了H5+jQuery实现<br><div class="panel panel-default collapse-panel box-shadow-wrap-lg"><div class="panel-heading panel-collapse" data-toggle="collapse" data-target="#collapse-256493cca6cb7b26bc5827bf3b6ebd1251" aria-expanded="true"><div class="accordion-toggle"><span style="">代码</span> <i class="pull-right fontello icon-fw fontello-angle-right"></i> </div> </div> <div class="panel-body collapse-panel-body"> <div id="collapse-256493cca6cb7b26bc5827bf3b6ebd1251" class="collapse collapse-content"><p></p></p><pre><code><!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> .container { width: 732px; height: 733px; position: absolute; left: 50%; transform: translate(-50%); border-radius: 100px; overflow: hidden; border-radius: 400px; } .cont { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .cont img { position: absolute; } .xing { top: 200px; } .ting { bottom: -280px; left: 20px; } .hua { right: -408px; top: 200px; } .tu { right: -294px; bottom: 0px; } .yun { left: -470px; } .yun2 { left: -425px; bottom: 0px } </style> <script src="https://www.xxhzm.cn/jq.js"></script> <script> $(function() { setInterval(() => { //星星 $('.xing').fadeTo('slow', 0); $('.xing').fadeTo('slow', 1); //亭子 $('.ting').animate({ 'bottom': '150px' }, 2000); $('.haiou').animate({ 'left': '270px', 'top': '240px' }, 2000); $('.hua').animate({ 'top': '50px', 'right': '0px' }, 2000); $('.tu').animate({ 'right': '0px' }, 2000); $('.yun').animate({ 'top': '50px', 'left': '0px' }, 2000); $('.yun2').animate({ 'left': '0px' }, 2000); }, 1000); }) </script> </head> <body> <div class="container"> <img src="https://www.xxhzm.cn/wj/upload/yue.png"> <div class="cont"> <img src="https://www.xxhzm.cn/wj/upload/ting.png" class="ting"> <img src="https://www.xxhzm.cn/wj/upload/haiou.png" class="haiou"> <img src="https://www.xxhzm.cn/wj/upload/hua.png" class="hua"> <img src="https://www.xxhzm.cn/wj/upload/tu.png" class="tu"> <img src="https://www.xxhzm.cn/wj/upload/yun.png" class="yun"> <img src="https://www.xxhzm.cn/wj/upload/yun2.png" class="yun2"> <img src="https://www.xxhzm.cn/wj/upload/xing.png" class="xing"> </div> </div> </body> </html> </code></pre><p><p></p></div></div></div><br>下载地址:<div class="hideContent">此处内容需要评论回复后(审核通过)方可阅读。</div></p> 猜你想看 Vue插槽 PHP获取用户的真实ip地址 记录一下多次被DDoS攻击 Vue生命周期 Vue的基本使用与指令 go语言数组 Go基本数据类型 Linux搭建我的世界服务器教程 常用Excel函数 每日一学:PHP 中的array_udiff_assoc函数详解 最后修改:2022 年 06 月 05 日 © 允许规范转载 赞 0 如果觉得我的文章对你有用,请随意赞赏
3 条评论
(☆ω☆)
zbc
看看