<!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 {
position: fixed;
bottom: 0;
right: 0;
overflow: hidden;
}
span {
position: absolute;
top: 0;
right: 0;
width: 30px;
height: 20px;
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");
box.firstElementChild.onclick = function () {
animation(box.lastElementChild, 0, "height", function () {
animation(box, 0, "width");
});
};
</script>
</html>