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

相关推荐
冬奇Lab2 小时前
AI Workflow 定义的四次演进:从 Markdown 到 JS 脚本,再到分布式多 Agent
javascript·人工智能·agent
zhangxingchao2 小时前
Kotlin常用的Flow 操作符整理
前端
IT_陈寒3 小时前
React的useState居然还有这种坑?我差点删库跑路
前端·人工智能·后端
Pedantic4 小时前
SwiftUI 手势笔记
前端·后端
橙子家5 小时前
浏览器缓存之【结构化数据库与缓存】: IndexedDB、Cache storage 和 Storage buckets
前端
user20585561518135 小时前
X6 中边悬浮置顶,规避 `mouseleave` 事件丢失问题
前端
李明卫杭州5 小时前
CSS aspect-ratio 属性完全指南
前端
Pedantic7 小时前
SwiftUI 手势层级(Gesture Hierarchy)详解
前端
飘尘7 小时前
前端转型全栈(Java后端)的快速上手指引
前端·后端·全栈