闪动文字动态效果404单页源码

简介: 闪动文字动态效果404单页源码,将源码放到空白的404.html里面即可,上传到服务器设置好重定向就可以使用了,喜欢的同学拿去使用吧

源码介绍

闪动文字动态效果404单页源码,将源码放到空白的404.html里面即可,上传到服务器设置好重定向就可以使用了,喜欢的同学拿去使用吧

效果预览

5.gif

完整源码

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Glitchy 404 Page</title>
        <style>@import url(https://fonts.googleapis.com/css?family=Gilda+Display);

html {
    
    
  background: radial-gradient(#000, #111);
  color: white;
  overflow: hidden;
  height: 100%;
  user-select: none;
}

.static {
    
    
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
  top: -100px;
  opacity: 0.05;
  z-index: 230;
  user-select: none;
  user-drag: none;
}

.error {
    
    
  text-align: center;
  font-family: 'Gilda Display', serif;
  font-size: 95px;
  font-style: italic;
  text-align: center;
  width: 100px;
  height: 60px;
  line-height: 60px;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60px;
  right: 0;
  animation: noise 2s linear infinite;
  overflow: default;
}

.error:after {
    
    
  content: '404';
  font-family: 'Gilda Display', serif;
  font-size: 100px;
  font-style: italic;
  text-align: center;
  width: 150px;
  height: 60px;
  line-height: 60px;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  color: blue;
  animation: noise-1 .2s linear infinite;
}

.info {
    
    
  text-align: center;
  font-family: 'Gilda Display', serif;
  font-size: 15px;
  font-style: italic;
  text-align: center;
  width: 200px;
  height: 60px;
  line-height: 60px;
  margin: auto;
  position: absolute;
  top: 140px;
  bottom: 0;
  left: 0;
  right: 0;
  animation: noise-3 1s linear infinite;
}

.error:before {
    
    
  content: '404';
  font-family: 'Gilda Display', serif;
  font-size: 100px;
  font-style: italic;
  text-align: center;
  width: 100px;
  height: 60px;
  line-height: 60px;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  color: red;
  animation: noise-2 .2s linear infinite;
}

@keyframes noise-1 {
    
    
  0%, 20%, 40%, 60%, 70%, 90% {
    
    opacity: 0;}
  10% {
    
    opacity: .1;}
  50% {
    
    opacity: .5; left: -6px;}
  80% {
    
    opacity: .3;}
  100% {
    
    opacity: .6; left: 2px;}
}

@keyframes noise-2 {
    
    
  0%, 20%, 40%, 60%, 70%, 90% {
    
    opacity: 0;}
  10% {
    
    opacity: .1;}
  50% {
    
    opacity: .5; left: 6px;}
  80% {
    
    opacity: .3;}
  100% {
    
    opacity: .6; left: -2px;}
}

@keyframes noise {
    
    
  0%, 3%, 5%, 42%, 44%, 100% {
    
    opacity: 1; transform: scaleY(1);}  
  4.3% {
    
    opacity: 1; transform: scaleY(1.7);}
  43% {
    
    opacity: 1; transform: scaleX(1.5);}
}

@keyframes noise-3 {
    
    
  0%,3%,5%,42%,44%,100% {
    
    opacity: 1; transform: scaleY(1);}
  4.3% {
    
    opacity: 1; transform: scaleY(4);}
  43% {
    
    opacity: 1; transform: scaleX(10) rotate(60deg);}
}</style>
    </head>
    <!--QQ沐编程 www.qqmu.com 学习QQ群:290987565   -->
    <body>
        <div class="error">404</div>
        <br/><br/>
        <span class="info">File not found</span>
        <img src="http://images2.layoutsparks.com/1/160030/too-much-tv-static.gif" class="static" />
    </body>
</html>
相关文章
|
JavaScript 开发者
|
1月前
|
JavaScript
jQuery仿方块人物头像消除游戏源码
jQuery人物头像迷阵消除游戏代码是一款类似《宝石迷阵》类的方块消除类型的小游戏源码。
92 13
|
3月前
jQuery+CSS3模拟过山车动态的文字动画特效源码
jQuery+CSS3模拟过山车动态的文字动画特效源码实现在全黑的背景下,画面中的文本呈现过山车的轨迹动画上下滚动转圈,且伴随文本颜色渐变效果,非常有意思,欢迎对此特效感兴趣的朋友前来下载参考。
35 1
|
3月前
实现响应式选项卡svg 文本轮播图特效
这是一个响应式选项卡svg 文本轮播图特效,该组件以swiper为基础,用的是swiper双向控制,图标条用的是阿里巴巴个人项目图标库。非常实用
39 0
|
6月前
|
移动开发 前端开发 JavaScript
HTML+CSS动画打造酷炫轮播图!(含源码)
HTML+CSS动画打造酷炫轮播图!(含源码)
|
9月前
|
移动开发 HTML5
动漫渐显引导页HTML5单页源码
挺不错的动漫渐显引导页,记事本右键打开即可修改~
51 0
非常漂亮的纯css3实现多彩侧边导航(非常流畅),附效果演示
非常漂亮的纯css3实现多彩侧边导航(非常流畅),附效果演示
|
前端开发 UED
CSS样式小项目实战 - 网页变色小按钮
CSS样式小项目实战 - 网页变色小按钮
166 0
CSS样式小项目实战 - 网页变色小按钮
|
JavaScript 前端开发
jQuery案例:图文滑动手风琴特效
jQuery案例:图文滑动手风琴特效
157 0
|
前端开发
前端很酷的按钮特效,你学会了吗?
分享代码了,如果觉得不错,可以花费两分钟学习哦 🤪
386 0

热门文章

最新文章

相关课程

更多