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

相关推荐
她说人狗殊途1 小时前
基于 vue-cli 创建
前端·javascript·vue.js
AZaLEan__2 小时前
前端移动端适配与 Bootstrap
前端·bootstrap·html
大家的林语冰2 小时前
Deno 2.8 正式发布,再次超越 Bun,史上最大的次版本升级诞生!
前端·javascript·node.js
渣渣xiong2 小时前
从零开始:前端转型AI agent直到就业第五十七天-第五十八天
前端·人工智能·python
影寂ldy2 小时前
C#数组的属性和方法(Clear / Copy / IndexOf )
开发语言·javascript·c#
Brave & Real3 小时前
小程序 const 在js中以及与同类的var和let之间的差异
javascript·微信小程序·小程序
AI周红伟3 小时前
周红伟:长鑫科技(CXMT)财务全景分析
前端·chrome·科技
excel3 小时前
JS 正则在多次 test() 时为什么会出现 lastIndex 缓存问题?
前端
IT_陈寒3 小时前
为什么 Java 的 Optional 让我调试到深夜?
前端·人工智能·后端
米丘3 小时前
React 19.x 的 lazy 与 Suspense
前端·javascript·react.js