Loading [MathJax]/jax/output/CommonHTML/config.js
前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >HTML源码,动态幽灵404错误页,跟随鼠标

HTML源码,动态幽灵404错误页,跟随鼠标

作者头像
程序员纬度
发布于 2021-03-02 03:00:00
发布于 2021-03-02 03:00:00
1.8K00
代码可运行
举报
文章被收录于专栏:奇异维度奇异维度
运行总次数:0
代码可运行

动态幽灵404错误页

网上看到的,感觉还不错,就扒过来了。幽灵会有浮动动画,跟随鼠标动画。

演示地址:http://code.cozv.cn/html/1/

附上源代码:

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>幽灵404页面</title>

<script type="text/javascript" src="http://cdn.cozv.cn/js/2020-0309-html2.js"></script>

<style>
html, body {
  background: #28254C;
  font-family: 'Ubuntu';
}

* {
  box-sizing: border-box;
}

.box {
  width: 350px;
  height: 100%;
  max-height: 600px;
  min-height: 450px;
  background: #332F63;
  border-radius: 20px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 30px 50px;
}
.box .box__ghost {
  padding: 15px 25px 25px;
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -30%);
}
.box .box__ghost .symbol:nth-child(1) {
  opacity: .2;
  animation: shine 4s ease-in-out 3s infinite;
}
.box .box__ghost .symbol:nth-child(1):before, .box .box__ghost .symbol:nth-child(1):after {
  content: '';
  width: 12px;
  height: 4px;
  background: #fff;
  position: absolute;
  border-radius: 5px;
  bottom: 65px;
  left: 0;
}
.box .box__ghost .symbol:nth-child(1):before {
  transform: rotate(45deg);
}
.box .box__ghost .symbol:nth-child(1):after {
  transform: rotate(-45deg);
}
.box .box__ghost .symbol:nth-child(2) {
  position: absolute;
  left: -5px;
  top: 30px;
  height: 18px;
  width: 18px;
  border: 4px solid;
  border-radius: 50%;
  border-color: #fff;
  opacity: .2;
  animation: shine 4s ease-in-out 1.3s infinite;
}
.box .box__ghost .symbol:nth-child(3) {
  opacity: .2;
  animation: shine 3s ease-in-out .5s infinite;
}
.box .box__ghost .symbol:nth-child(3):before, .box .box__ghost .symbol:nth-child(3):after {
  content: '';
  width: 12px;
  height: 4px;
  background: #fff;
  position: absolute;
  border-radius: 5px;
  top: 5px;
  left: 40px;
}
.box .box__ghost .symbol:nth-child(3):before {
  transform: rotate(90deg);
}
.box .box__ghost .symbol:nth-child(3):after {
  transform: rotate(180deg);
}
.box .box__ghost .symbol:nth-child(4) {
  opacity: .2;
  animation: shine 6s ease-in-out 1.6s infinite;
}
.box .box__ghost .symbol:nth-child(4):before, .box .box__ghost .symbol:nth-child(4):after {
  content: '';
  width: 15px;
  height: 4px;
  background: #fff;
  position: absolute;
  border-radius: 5px;
  top: 10px;
  right: 30px;
}
.box .box__ghost .symbol:nth-child(4):before {
  transform: rotate(45deg);
}
.box .box__ghost .symbol:nth-child(4):after {
  transform: rotate(-45deg);
}
.box .box__ghost .symbol:nth-child(5) {
  position: absolute;
  right: 5px;
  top: 40px;
  height: 12px;
  width: 12px;
  border: 3px solid;
  border-radius: 50%;
  border-color: #fff;
  opacity: .2;
  animation: shine 1.7s ease-in-out 7s infinite;
}
.box .box__ghost .symbol:nth-child(6) {
  opacity: .2;
  animation: shine 2s ease-in-out 6s infinite;
}
.box .box__ghost .symbol:nth-child(6):before, .box .box__ghost .symbol:nth-child(6):after {
  content: '';
  width: 15px;
  height: 4px;
  background: #fff;
  position: absolute;
  border-radius: 5px;
  bottom: 65px;
  right: -5px;
}
.box .box__ghost .symbol:nth-child(6):before {
  transform: rotate(90deg);
}
.box .box__ghost .symbol:nth-child(6):after {
  transform: rotate(180deg);
}
.box .box__ghost .box__ghost-container {
  background: #fff;
  width: 100px;
  height: 100px;
  border-radius: 100px 100px 0 0;
  position: relative;
  margin: 0 auto;
  animation: upndown 3s ease-in-out infinite;
}
.box .box__ghost .box__ghost-container .box__ghost-eyes {
  position: absolute;
  left: 50%;
  top: 45%;
  height: 12px;
  width: 70px;
}
.box .box__ghost .box__ghost-container .box__ghost-eyes .box__eye-left {
  width: 12px;
  height: 12px;
  background: #332F63;
  border-radius: 50%;
  margin: 0 10px;
  position: absolute;
  left: 0;
}
.box .box__ghost .box__ghost-container .box__ghost-eyes .box__eye-right {
  width: 12px;
  height: 12px;
  background: #332F63;
  border-radius: 50%;
  margin: 0 10px;
  position: absolute;
  right: 0;
}
.box .box__ghost .box__ghost-container .box__ghost-bottom {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}
.box .box__ghost .box__ghost-container .box__ghost-bottom div {
  flex-grow: 1;
  position: relative;
  top: -10px;
  height: 20px;
  border-radius: 100%;
  background-color: #fff;
}
.box .box__ghost .box__ghost-container .box__ghost-bottom div:nth-child(2n) {
  top: -12px;
  margin: 0 -0px;
  border-top: 15px solid #332F63;
  background: transparent;
}
.box .box__ghost .box__ghost-shadow {
  height: 20px;
  box-shadow: 0 50px 15px 5px #3B3769;
  border-radius: 50%;
  margin: 0 auto;
  animation: smallnbig 3s ease-in-out infinite;
}
.box .box__description {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}
.box .box__description .box__description-container {
  color: #fff;
  text-align: center;
  width: 200px;
  font-size: 16px;
  margin: 0 auto;
}
.box .box__description .box__description-container .box__description-title {
  font-size: 24px;
  letter-spacing: .5px;
}
.box .box__description .box__description-container .box__description-text {
  color: #8C8AA7;
  line-height: 20px;
  margin-top: 20px;
}
.box .box__description .box__button {
  display: block;
  position: relative;
  background: #FF5E65;
  border: 1px solid transparent;
  border-radius: 50px;
  height: 50px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  line-height: 50px;
  font-size: 18px;
  padding: 0 70px;
  white-space: nowrap;
  margin-top: 25px;
  transition: background .5s ease;
  overflow: hidden;
}
.box .box__description .box__button:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 100px;
  background: #fff;
  bottom: -25px;
  left: 0;
  border: 2px solid #fff;
  transform: translateX(-50px) rotate(45deg);
  transition: transform .5s ease;
}
.box .box__description .box__button:hover {
  background: transparent;
  border-color: #fff;
}
.box .box__description .box__button:hover:before {
  transform: translateX(250px) rotate(45deg);
}

@keyframes upndown {
  0% {
    transform: translateY(5px);
  }
  50% {
    transform: translateY(15px);
  }
  100% {
    transform: translateY(5px);
  }
}
@keyframes smallnbig {
  0% {
    width: 90px;
  }
  50% {
    width: 100px;
  }
  100% {
    width: 90px;
  }
}
@keyframes shine {
  0% {
    opacity: .2;
  }
  25% {
    opacity: .1;
  }
  50% {
    opacity: .2;
  }
  100% {
    opacity: .2;
  }
}
</style>
</head>
<body>
<div class="box">
  <div class="box__ghost">
    <div class="symbol"></div>
    <div class="symbol"></div>
    <div class="symbol"></div>
    <div class="symbol"></div>
    <div class="symbol"></div>
    <div class="symbol"></div>
    
    <div class="box__ghost-container">
      <div class="box__ghost-eyes">
        <div class="box__eye-left"></div>
        <div class="box__eye-right"></div>
      </div>
      <div class="box__ghost-bottom">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
      </div>
    </div>
    <div class="box__ghost-shadow"></div>
  </div>
  
  <div class="box__description">
    <div class="box__description-container">
      <div class="box__description-title">404错误!</div>
      <div class="box__description-text">看来我们找不到你要找的那一页</div>
    </div>
    
    <a href="/index.php" class="box__button">返回</a>
    
  </div>
  
</div>

<script>

var pageX = $(document).width();
var pageY = $(document).height();
var mouseY=0;
var mouseX=0;

$(document).mousemove(function( event ) {
  mouseY = event.pageY;
  yAxis = (pageY/2-mouseY)/pageY*300; 
  mouseX = event.pageX / -pageX;
  xAxis = -mouseX * 100 - 100;

  $('.box__ghost-eyes').css({ 'transform': 'translate('+ xAxis +'%,-'+ yAxis +'%)' }); 


});</script>

</body>
</html>

版权声明:本站原创文章 HTML源码,动态幽灵404错误页,跟随鼠标 由 小维 发表!

转载请注明:HTML源码,动态幽灵404错误页,跟随鼠标 - 小维的个人博客

部分素材来源于网络,如有侵权请联系删除!

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020 年 03 月,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
暂无评论
推荐阅读
编辑精选文章
换一批
腾讯云智能体开发平台一键生成精美PPT,体验吧
最近有看到了苍何老师的文章,知道了这个腾讯云的腾讯云智能体开发平台支持了各种各样的MCP,操作比之前的更加简单,而且这个效果会更加的惊艳,作为腾讯云社区的深度用户和活跃博主,我必须要去体验一下这个产品的效果,但是这个过程中发生了一些小插曲,即使如此,我依然学到了很多,写下这个文章记录一下这次学习的过程吧;
阑梦清川
2025/04/17
1280
一手体验Suno v3.5版本,生成音乐的门槛再一次被AI拉低了。
昨天从深圳回家,上飞机前,顺手看了一眼X,忽然看到AI音乐界的“Chatgpt” - Suno悄悄放了一个视频。
数字生命卡兹克
2025/04/14
880
一手体验Suno v3.5版本,生成音乐的门槛再一次被AI拉低了。
AI |美图AI PPT使用体验
在百无聊赖地互联网冲浪的时候,意外地发现美图居然也做了PPT AI,还真的是有点意料之外。
做数据的二号姬
2023/11/15
7160
AI |美图AI PPT使用体验
github page+jekyll构建博客的解决方案
想在github page上构建自己的博客,前几个星期就动手搞了起来,但由于自己对于前端这些东西不是很熟,所以断断续续的,直到今天才把所有东西都搞懂,而且构建出自己的github博客了。
chenjx85
2019/05/15
9720
github page+jekyll构建博客的解决方案
一键开启AI编程新纪元:Windows版Trae初体验
继火爆全网的Cursor之后,字节也推出了Trae AI工具。但是前面只支持Mac OS版本,Windows版本于今天2025年2月17日正式发布,下班了赶紧下载体验一下。作为对标Cursor和windsurf的IDE,也是作为国产(第一款?)为中文开发者量身定制的工具,可谓是中文开发者的福音。
有一只柴犬
2025/02/17
1.7K4
一键开启AI编程新纪元:Windows版Trae初体验
使用AI工具一键生成PPT
如果只是要PPT这个东西的话,那现在的AI工具确实可以根据你的语句生成效果相对OK的PPT。你可以尝试下面这个网站:
石云升
2024/03/13
8060
使用AI工具一键生成PPT
真工程师:20块钱做了张「名片」,可以跑Linux和Python
最近,美国一名嵌入式系统工程师 George Hilliard 的名片引发了众人的关注。他以自己的名片为「主板」,在小小的空间里打印了计算机系统所需的所有元器件,使其可以成为了一台可以运行 Linux 的电脑。上面还有一个简化版的 Python 解释器。
Piper蛋窝
2020/12/14
1.1K0
真工程师:20块钱做了张「名片」,可以跑Linux和Python
基于AI大模型的代码自动生成技术研讨沙龙
谢涛:北京大学计算机学院软件科学与工程系系主任、欧洲科学院外籍院士、ACM会士、IEEE会士、AAAS会士、CCF会士
成江东
2023/05/14
2.2K0
基于AI大模型的代码自动生成技术研讨沙龙
一次对话,让我10分钟打造一款拥有玻璃拟态风格的二维码生成大师
最近我鼓捣了一个二维码生成器,名字起得稍微认真点,叫 QRStudio。起因其实挺简单的,就是我老要生成二维码,但总觉得网上那些工具不太“合我胃口”——不是界面太简陋,就是样式一眼看穿。于是我干脆自己搞一个,起码能做成我喜欢的样子。
繁依Fanyi
2025/05/16
630
【玩转AI绘画】借助HAI“一条龙”实现AI绘画所有应用场景
先来聊一下关于AI绘画的发展情况,近年来AI技术在绘画领域取得了巨大的突破,为绘画创作注入了全新的活力,以及各种插件,比如animatediff、instantid、controlnet、roop等如“雨后春笋”般涌现,这些插件通过引入动态演变、个性化头像生成、精细控制和图像循环等功能,极大地丰富了AI绘画的各种能力,给AI绘画注入了无限的力量。
三掌柜
2024/03/27
5422
【玩转AI绘画】借助HAI“一条龙”实现AI绘画所有应用场景
实用工具网站合集值得收藏![搜嗖工具箱]
ChatGpt横空出世的横空出世好像一把钥匙,开启了大模型时代,国内也有不错的产品,比如百度的文心一言,从3.5到4.0看得见的成长,现在的文心一言是我们工作中不可缺少的好帮手!作为一个生成式对话产品可以帮助用户撰写想要的各种文本,百宝箱功能可以根据不同行业、职业满足使用者需求,更贴心的是附带了详细的使用手册。使用起来非常方便,只需要登录百度账号,百度搜索一下关键词“文心一言”官方网址打开就能用,过期了需要续费!
搜嗖工具箱
2024/04/21
1910
实用工具网站合集值得收藏![搜嗖工具箱]
体验腾讯云高性能应用服务 HAI:一键搭建AI绘画平台
高性能应用服务(HAI)是一款专为AI和科学计算设计的GPU/NPU应用服务产品。通过提供即插即用的强大算力和常见环境,HAI能够帮助中小企业和开发者快速部署语言模型(LLM)、AI绘图、数据科学等高性能应用。同时,HAI还原生集成了配套的开发工具和组件,极大提升了应用层的开发生产效率。
快乐的小白
2024/03/12
4780
体验腾讯云高性能应用服务 HAI:一键搭建AI绘画平台
腾讯云代码助手 CodeBuddy初体验
大家好,我是杜金房,是一个老码农。今天跟大家聊聊AI辅助编程——我使用CodeBuddy的体验。
杜金房
2025/05/13
3850
腾讯云代码助手 CodeBuddy初体验
代码生成器(一)
这个主要就是创建一个空项目:如下图所示(这个好像是和我们之前的这个创建项目的流程不太一样,选择的是这个empty project这个空项目);
阑梦清川
2025/02/24
710
代码生成器(一)
刚刚上线的Vidu2.0,想让所有人都用得起AI视频。
自从可灵1.6发了之后,明显感觉所有家都坐不住了,基本都把自己的牛逼货加速推了出来。
数字生命卡兹克
2025/04/14
890
刚刚上线的Vidu2.0,想让所有人都用得起AI视频。
归档 | 谈谈我的编码历程
那时候很想在互联网上拥有自己的一个网站,于是就去了解相关的知识吧,因为那时候什么都不会…
Zkeq
2022/09/20
8650
归档 | 谈谈我的编码历程
10秒钟复刻AI付航吐槽一切,这就是现在最好的TTS声音克隆。
周六我一边看LOL S14总决赛,一边看《喜剧之王单口季》,真就体会了一把什么叫心态过山车。。。拉的很拉,稳的很稳。
数字生命卡兹克
2025/04/14
890
10秒钟复刻AI付航吐槽一切,这就是现在最好的TTS声音克隆。
迟来的2020年度总结,顺带附上被鸽了很久的自我介绍
大家好,我是小澎,一个热爱前端的2021届的应届毕业生,大学专业是安全工程,不,不是网络安全,而是工程安全,所以我是非科班。今天呢,想跟大家介绍介绍我自己
@零一
2021/05/14
3900
迟来的2020年度总结,顺带附上被鸽了很久的自我介绍
让 AI 为你写代码 - 体验 Github Copilot
前几天在群里看到有大神分享 Copoilot AI 写代码,看了几个截图有点不敢相信自己的眼睛。今天赶紧自己也来体验一下 Copoilot AI 写代码到底有多神奇。
MJ.Zhou
2021/11/08
9720
推荐 16 个前端必备的实用工具与网站
地址:https://desktop.github.com/ 对于新手来说,要记住那么多 git 命令可能有点困难,建议新手用 git 可视化工具,会方便很多
白黎
2023/03/09
7290
推荐 16 个前端必备的实用工具与网站
推荐阅读
相关推荐
腾讯云智能体开发平台一键生成精美PPT,体验吧
更多 >
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
本文部分代码块支持一键运行,欢迎体验
本文部分代码块支持一键运行,欢迎体验