启动页面UI(HTML)

从模糊到现实 浮现


<!DOCTYPE html>

<html>

<head>

<style>

.body {

background-color:#f8f8f8;

}

/* 定义动画效果 */

@keyframes openingAnimation {

0% { opacity: 0; }

100% { opacity: 1; }

}

/* 设置动画元素样式 */

.animation {

position: absolute;

top: 50%;

left: 50%;

transform: translate(-50%, -50%);

animation: openingAnimation 3s ease-in-out;

}

/* 设置网页内容样式 */

/* 设置背景样式 */

.background

width: 100%;

height: 900vh;

}

</style>

</head>

<body>

<div class="background">

<div class="animation">

<img src="tupian/y.png" width="370px"/>

<p>在滑动一次退出</p>

</div>

</div>

<script>

// 动画播放完毕后打开网址

setTimeout(function() {

window.location.href = "index.html";

}, 2000);

</script>

<body style="background-color: #f8f8f8;">

<!-- 网页内容 -->

</body>

</html>

相关推荐
传人once8 小时前
页面中心圆圈放大效果如何写
开发语言·javascript·ecmascript
用户033307413958 小时前
TypeScript using 与 AsyncDisposableStack:在真实服务端代码中协调多资源清理
前端
daisychey8 小时前
用 Playwright 做多平台内容分发,我踩过的 8 个坑
前端
IT_陈寒9 小时前
为什么你应该学习JavaScript?
前端·人工智能·后端
大龄秃头程序员9 小时前
iOS冷启动监控Demo
前端
光影少年9 小时前
为什么 JavaScript 中 0.1 + 0.2 !== 0.3,如何让其相等?
前端·javascript·算法
掘金酱10 小时前
[稀土掘金 × 火山引擎] AI用量周榜冲刺赛|获奖名单公示
前端·人工智能·后端
泡泡oO10 小时前
“如果你还在用Superpowers,那我不要和你说话”
前端·后端·全栈
维克兜率天10 小时前
趋势过滤:避免被“假突破“反复打脸
前端
8年区块链老兵11 小时前
一篇文章教会你:用区块高度读懂比特币链上的每一笔交易
前端