我是靠谱客的博主 呆萌自行车,最近开发中收集的这篇文章主要介绍JavaScript - WebAPI - 动画 - 案例 - 360开机动画隐藏,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

<!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>360开机动画隐藏</title>
<style>
.box {
/*width: 322px;*/
position: fixed;
bottom: 0;
right: 0;
overflow: hidden;
}
span {
position: absolute;
top: 0;
right: 0;
width: 30px;
height: 20px;
/*background-color: red;*/
cursor: pointer;
}
</style>
</head>
<body>
<div class="box">
<span></span>
<div class="hd">
<img src="images/t.jpg" alt="" />
</div>
<div class="bd">
<img src="images/b.jpg" alt="" />
</div>
</div>
</body>
<script src="./js/animation.js"></script>
<script>
// 获取相关元素
const box = document.querySelector(".box");
// 给span做是事件
box.firstElementChild.onclick = function () {
animation(box.lastElementChild, 0, "height", function () {
animation(box, 0, "width");
});
};
</script>
</html>

最后

以上就是呆萌自行车为你收集整理的JavaScript - WebAPI - 动画 - 案例 - 360开机动画隐藏的全部内容,希望文章能够帮你解决JavaScript - WebAPI - 动画 - 案例 - 360开机动画隐藏所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(32)

评论列表共有 0 条评论

立即
投稿
返回
顶部