启动页面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>

相关推荐
houhou1 分钟前
Monaco Editor 集成指南:从配置到优化
前端
hunterandroid4 分钟前
[Android 从零到一] Custom View 自定义绘制:从 onDraw 到完整交互
前端
李明卫杭州9 分钟前
Vue3 v-memo 指令详解:让你的列表渲染性能翻倍 🚀
前端
梨子同志20 分钟前
Monorepo
前端
lihaozecq22 分钟前
继 Web Coding Agent 后,我做了一个本地优先的桌面 AI Agent
前端·agent
用户2986985301429 分钟前
在 React 中使用 JavaScript 将 Excel 转换为 SVG
前端·javascript·react.js
CodingSpace42 分钟前
ESLint
前端
Csvn1 小时前
异步错误捕获的六大陷阱:await 裹着 try-catch 就一定稳了吗?
前端
用户059540174461 小时前
向量库静默丢数据踩坑实录:Playwright 端到端测试让我排查了72小时
前端·css
星栈1 小时前
SPA 写累了?试试 LiveView:服务端管状态,前端不写 JS
前端·前端框架·elixir