当前位置:首页 > 网站源码 > 正文内容

创意太空宇航员404错误页面模板:基于CSS3和SVG的飞碟动画,附HTML代码和下载

卡卷网1年前 (2024-09-12)网站源码340

创意太空宇航员404错误页面模板:基于CSS3和SVG的飞碟动画,附HTML代码和下载  第1张

一款创意设计的太空宇航员与飞碟404错误页面模板下载,太空动画404页面html代码.css3基于svg实现创意的404页面,宇航员迷失在外星球404页面动画模板。可以有效提高用户体验。英语可以自己翻译修改成中文

HTML代码如下:


<!DOCTYPE html>
<html >
<head>
  <meta charset="UTF-8">
  <title>Mars 404 Error Page</title>
  <link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
<div></div>
<img src="images/404.svg" />
<img src="images/meteor.svg" />
<p>Oh no!!</p>
<p>
You’re either misspelling the URL <br /> or requesting a page that's no longer here.
</p>
<div>
<a href="http://www.kajuan.net/">Back to previous page</a>
</div>
<img src="images/astronaut.svg" />
<img src="images/spaceship.svg" />
<!-- partial -->
  <script  src="./script.js"></script>
</body>
</html>

CSS代码如下

@import url("https://fonts.googleapis.com/css?family=Nunito:400,600,700");
@keyframes floating {
  from {
    transform: translateY(0px);
  }
  65% {
    transform: translateY(15px);
  }
  to {
    transform: translateY(0px);
  }
}
html {
  height: 100%;
}

body {
  background-image: url("images/star.svg"), linear-gradient(to bottom, #05007A, #4D007D);
  height: 100%;
  margin: 0;
  background-attachment: fixed;
  overflow: hidden;
}

.mars {
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  height: 27vmin;
  background: url("images/mars.svg") no-repeat bottom center;
  background-size: cover;
}

.logo-404 {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  top: 16vmin;
  width: 30vmin;
}
@media (max-width: 480px) and (min-width: 320px) {
  .logo-404 {
    top: 45vmin;
  }
}

.meteor {
  position: absolute;
  right: 2vmin;
  top: 16vmin;
}

.title {
  color: white;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  text-align: center;
  font-size: 5vmin;
  margin-top: 31vmin;
}
@media (max-width: 480px) and (min-width: 320px) {
  .title {
    margin-top: 65vmin;
  }
}

.subtitle {
  color: white;
  font-family: "Nunito", sans-serif;
  font-weight: 400;
  text-align: center;
  font-size: 3.5vmin;
  margin-top: -1vmin;
  margin-bottom: 9vmin;
}

.btn-back {
  border: 1px solid white;
  color: white;
  height: 5vmin;
  padding: 12px;
  font-family: "Nunito", sans-serif;
  text-decoration: none;
  border-radius: 5px;
}
.btn-back:hover {
  background: white;
  color: #4D007D;
}
@media (max-width: 480px) and (min-width: 320px) {
  .btn-back {
    font-size: 3.5vmin;
  }
}

.astronaut {
  position: absolute;
  top: 18vmin;
  left: 10vmin;
  height: 30vmin;
  animation: floating 3s infinite ease-in-out;
}
@media (max-width: 480px) and (min-width: 320px) {
  .astronaut {
    top: 2vmin;
  }
}

.spaceship {
  position: absolute;
  bottom: 15vmin;
  right: 24vmin;
}
@media (max-width: 480px) and (min-width: 320px) {
  .spaceship {
    width: 45vmin;
    bottom: 18vmin;
  }
}

四张svg图片如下


svg文件包大小:40kb
已经过安全软件检测无毒,请您放心下载。

扫描二维码推送至手机访问。

版权声明:本文由卡卷网发布,如需转载请注明出处。

本文链接:https://www.kajuan.net/softcode/2024/09/213.html

分享给朋友:

相关文章

最新版娴娴小说网站程序PHP+MySQL进行开发的PHP小说采集网站程序

最新版娴娴小说网站程序PHP+MySQL进行开发的PHP小说采集网站程序

最新版娴娴小说网站源码,亲测可用,测试php5.6-mysql5.6正常使用,但是不能采集,采集规则已失效请自行解决!《娴娴小说》是一个以PHP+MySQL进行开发的PHP小说采集网站程序,真正的懒人必备。本小说程序采用文本缓存方式存储,程...

2024最新版网站分类目录源码网址免费提交收录导航程序模板免费下载

2024最新版网站分类目录源码网址免费提交收录导航程序模板免费下载

2024最新版网站分类目录源码网址免费提交收录导航程序模板免费下载,35Dir核心程序,亲测php5.6-mysql可以正常使用。如下图所示:简介:注意:切记源码中config.php等之类的有关网站配置的文件不要直接用记事本直接打开修改,...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。