动态白色小幽灵404网站源码

简介: 动态白色小幽灵404网站源码,页面时单页HTML源码,将代码放到空白的html里面,鼠标双击html即可查看效果,或者上传到服务器,错误页重定向这个界面即可,喜欢的朋友可以拿去使用

动态白色小幽灵404网站源码,页面时单页HTML源码,将代码放到空白的html里面,鼠标双击html即可查看效果,或者上传到服务器,错误页重定向这个界面即可,喜欢的朋友可以拿去使用
20.gif

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>ghost 404</title>
        <style>
        @import url("https://fonts.googleapis.com/css?family=Abril+Fatface|Lato");
body {
    
    
  background: #D3DEEA;
}

.top {
    
    
  margin-top: 30px;
}

.container {
    
    
  margin: 0 auto;
  position: relative;
  width: 250px;
  height: 250px;
  margin-top: -40px;
}

.ghost {
    
    
  width: 50%;
  height: 53%;
  left: 25%;
  top: 10%;
  position: absolute;
  border-radius: 50% 50% 0 0;
  background: #EDEDED;
  border: 1px solid #BFC0C0;
  border-bottom: none;
  animation: float 2s ease-out infinite;
}

.ghost-copy {
    
    
  width: 50%;
  height: 53%;
  left: 25%;
  top: 10%;
  position: absolute;
  border-radius: 50% 50% 0 0;
  background: #EDEDED;
  border: 1px solid #BFC0C0;
  border-bottom: none;
  animation: float 2s ease-out infinite;
  z-index: 0;
}

.face {
    
    
  position: absolute;
  width: 100%;
  height: 60%;
  top: 20%;
}

.eye, .eye-right {
    
    
  position: absolute;
  background: #585959;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  top: 40%;
}

.eye {
    
    
  left: 25%;
}

.eye-right {
    
    
  right: 25%;
}

.mouth {
    
    
  position: absolute;
  top: 50%;
  left: 45%;
  width: 10px;
  height: 10px;
  border: 3px solid;
  border-radius: 50%;
  border-color: transparent #585959 #585959 transparent;
  transform: rotate(45deg);
}

.one, .two, .three, .four {
    
    
  position: absolute;
  background: #EDEDED;
  top: 85%;
  width: 25%;
  height: 23%;
  border: 1px solid #BFC0C0;
  z-index: 0;
}

.one {
    
    
  border-radius: 0 0 100% 30%;
  left: -1px;
}

.two {
    
    
  left: 23%;
  border-radius: 0 0 50% 50%;
}

.three {
    
    
  left: 50%;
  border-radius: 0 0 50% 50%;
}

.four {
    
    
  left: 74.5%;
  border-radius: 0 0 30% 100%;
}

.shadow {
    
    
  position: absolute;
  width: 30%;
  height: 7%;
  background: #BFC0C0;
  left: 35%;
  top: 80%;
  border-radius: 50%;
  animation: scale 2s infinite;
}

@keyframes scale {
    
    
  0% {
    
    
    transform: scale(1);
  }
  50% {
    
    
    transform: scale(1.1);
  }
  100% {
    
    
    transform: scale(1);
  }
}
@keyframes float {
    
    
  50% {
    
    
    transform: translateY(15px);
  }
}
.bottom {
    
    
  margin-top: 10px;
}

/*text styling*/
h1 {
    
    
  font-family: "Abril Fatface", serif;
  color: #EDEDED;
  text-align: center;
  font-size: 9em;
  margin: 0;
  text-shadow: -1px 0 #BFC0C0, 0 1px #BFC0C0, 1px 0 #BFC0C0, 0 -1px #BFC0C0;
}

h3 {
    
    
  font-family: "Lato", sans-serif;
  font-size: 2em;
  text-transform: uppercase;
  text-align: center;
  color: #BFC0C0;
  margin-top: -20px;
  font-weight: 900;
}

p {
    
    
  text-align: center;
  font-family: "Lato", sans-serif;
  color: #585959;
  font-size: 0.6em;
  margin-top: -20px;
  text-transform: uppercase;
}

.search {
    
    
  text-align: center;
}

.buttons {
    
    
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

/*search style*/
.search-bar {
    
    
  border: 1px solid #BFC0C0;
  padding: 5px;
  height: 20px;
  margin-left: -30px;
  width: 200px;
  outline: none;
}
.search-bar:focus {
    
    
  border: 1px solid #D3DEEA;
}

.search-btn {
    
    
  position: absolute;
  width: 30px;
  height: 32px;
  border: 1px solid #BFC0C0;
  background: #BFC0C0;
  text-align: center;
  color: #EDEDED;
  cursor: pointer;
  font-size: 1em;
  outline: none;
}
.search-btn:hover {
    
    
  background: #EDEDED;
  border: 1px solid #EDEDED;
  color: #BFC0C0;
  transition: all 0.2s ease;
}

.btn {
    
    
  background: #EDEDED;
  padding: 15px 20px;
  margin: 5px;
  color: #585959;
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  font-size: 0.6em;
  letter-spacing: 1px;
  border: 0;
}
.btn:hover {
    
    
  background: #BFC0C0;
  transition: all 0.4s ease-out;
}

footer {
    
    
  position: absolute;
  bottom: 0;
  right: 0;
  text-align: center;
  font-size: 0.8em;
  text-transform: uppercase;
  padding: 10px;
  color: #EA7996;
  letter-spacing: 3px;
  font-family: "Lato", sans-serif;
}
footer a {
    
    
  color: #ffffff;
  text-decoration: none;
}
footer a:hover {
    
    
  color: #7d7d7d;
}</style>
    </head>
    <body>
        <div id="background"></div>
        <div class="top">
          <h1>404</h1>
          <h3>page not found</h3>
        </div>
        <div class="container">
          <div class="ghost-copy">
            <div class="one"></div>
            <div class="two"></div>
            <div class="three"></div>
            <div class="four"></div>
          </div>
          <div class="ghost">
            <div class="face">
              <div class="eye"></div>
              <div class="eye-right"></div>
              <div class="mouth"></div>
            </div>
          </div>
          <div class="shadow"></div>
        </div>
        <div class="bottom">
          <p>Boo, looks like a ghost stole this page!</p>
          <form class="search" action="https://www.qqmu.com/">
            <input type="text" class="search-bar" name="s" placeholder="Search">
            <button type="submit" class="search-btn">
              <i class="fa fa-search"></i>
            </button>
          </form>
          <div class="buttons">
            <button class="btn">Back</button>
            <a href="http://www.qqmu.com"><button class="btn">Home</button></a>
          </div>
        </div>

        <footer>
          <p>made by <a href="http://www.qqmu.com">Haiyong</a> 
        </footer>
    </body>
</html>
相关文章
|
11月前
|
XML Web App开发 SQL
一文带你了解网页的灰色效果是如何实现的
一文带你了解网页的灰色效果是如何实现的
179 40
|
2月前
动态颤抖的眼睛效果404页面源码
动态颤抖的眼睛效果404页面源码, 源码由HTML+CSS+JS组成,记事本打开源码文件可以进行内容文字之类的修改,双击html文件可以本地运行效果,也可以上传到服务器里面,重定向这个界面
14 1
动态颤抖的眼睛效果404页面源码
|
2月前
好看的粒子上升吊灯左右摇摆动态404页面源码
好看的粒子上升吊灯左右摇摆动态404页面源码
15 0
好看的粒子上升吊灯左右摇摆动态404页面源码
|
3月前
|
XML IDE 开发工具
Eclispse 换主题、皮肤、配色,换黑色主题护眼
Eclispse 换主题、皮肤、配色,换黑色主题护眼
38 1
|
4月前
|
前端开发 移动开发 JavaScript
跨年动态炫酷烟花网页代码
利用Html5的Canvas技术,模拟出逼真的烟花效果,让用户在网页上欣赏到绚丽多彩的烟花盛宴。同时,通过交互式设计,让用户能够与烟花互动,增加趣味性。
57 0
跨年动态炫酷烟花网页代码
五款炫酷精美动态登录页面,彩虹气泡动态云层深海灯光水母炫酷星空蛛网HTMLCSS源码
五款炫酷精美动态登录页面,彩虹气泡动态云层深海灯光水母炫酷星空蛛网HTMLCSS源码
105 0
|
前端开发
CSS 如何实现“咖啡墙错觉”效果?神奇~
CSS 如何实现“咖啡墙错觉”效果?神奇~
|
前端开发 JavaScript
div在网页中四周留个等宽“包边”的办法
div在网页中四周留个等宽“包边”的办法
66 0
div在网页中四周留个等宽“包边”的办法
|
前端开发 JavaScript
div在网页四周留个等宽“包边”的办法
div在网页四周留个等宽“包边”的办法
87 0
div在网页四周留个等宽“包边”的办法
|
前端开发
脑洞大开:如何使用CSS实现自定义圆角虚线框
在CSS中,我们常用`border`来表示一个元素的边框样式,也可以使用`border`来绘制简单的分割线。最近遇到一个项目,需要用虚线来显示元素的边框。初步一看,这不很简单嘛,一行代码搞定`border: 1px dashed #ccc`。自我感觉良好,结果UI的同事直接提刀来了,“这是我想要的效果吗,我要的是……”。没办法,还是老老实实想办法解决自定义的虚线边框。
948 1
脑洞大开:如何使用CSS实现自定义圆角虚线框