当前位置:首页 > 编程笔记 > 正文
已解决

启动页面UI(HTML)

来自网友在路上 142842提问 提问时间:2023-10-02 08:05:45阅读次数: 42

最佳答案 问答题库428位专家为你答疑解惑

从模糊到现实 浮现


<!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>

查看全文

99%的人还看了

猜你感兴趣

版权申明

本文"启动页面UI(HTML)":http://eshow365.cn/6-15773-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!