当前位置: 首页 > news >正文

css3 svg制作404页面动画效果HTML源码

源码介绍

css3 svg制作404页面动画效果HTML源码,源码由HTML+CSS+JS组成,记事本打开源码文件可以进行内容文字之类的修改,双击html文件可以本地运行效果

效果预览

在这里插入图片描述

源码如下

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>svg 404页面</title><style>
body, html{margin: 0 auto;padding: 0;font-weight: 800;
}body{background: #000;font-family: cursive;
}svg {display: block;font: 10.5em 'Monoton';width: 960px;height: 300px;margin: 0 auto;
}.content{text-align: center;
}h1{text-align: center;font: 2em 'Roboto', sans-serif;font-weight: 900;color: #2f8f7f;opacity: .6;
}a{display: inline-block;text-transform: uppercase;font: 1em 'Roboto';font-weight: 300;border: 1px solid #2f8f7f;border-radius: 4px;color: #2f8f7f;margin-top: 10%;padding: 8px 14px;text-decoration: none;opacity: .6;
}.text {fill: none;stroke: white;stroke-dasharray: 8% 29%;stroke-width: 5px;stroke-dashoffset: 1%;animation: stroke-offset 5.5s infinite linear;
}.text:nth-child(1){stroke: #1c234d;animation-delay: -1;
}.text:nth-child(2){stroke: #315b2c;animation-delay: -2s;
}.text:nth-child(3){stroke: #2f8f7f;animation-delay: -3s;
}.text:nth-child(4){stroke: #2f8f7f;animation-delay: -4s;
}.text:nth-child(5){stroke: #da2717;animation-delay: -5s;
}@keyframes stroke-offset{100% {stroke-dashoffset: -35%;}
}
</style>
</head>
<body><link href="https://fonts.googleapis.com/css?family=Monoton" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"><svg viewBox="0 0 960 300"><symbol id="s-text"><text text-anchor="middle" x="50%" y="80%">404</text></symbol><g class = "g-ants"><use xlink:href="#s-text" class="text"></use><use xlink:href="#s-text" class="text"></use><use xlink:href="#s-text" class="text"></use><use xlink:href="#s-text" class="text"></use><use xlink:href="#s-text" class="text"></use></g>
</svg>
<div class="content"><h1>页面未找到</h1><a href="&#x0068;&#x0074;&#x0074;&#x0070;&#x0073;&#x003a;&#x002f;&#x002f;&#x0077;&#x0077;&#x0077;&#x002e;&#x0071;&#x0071;&#x006d;&#x0075;&#x002e;&#x0063;&#x006f;&#x006d;">返回首页</a>
</div></body>
</html>
http://www.lryc.cn/news/526485.html

相关文章:

  • 序列标注:从传统到现代,NLP中的标签预测技术全解析
  • 软件测试 —— 性能测试(jmeter)
  • python介绍ransac算法拟合圆
  • WPS计算机二级•表格保护与打印
  • Vue组件开发-使用xlsx库导出Excel文件
  • 使用 Pipeline 提高 Redis 批量操作性能
  • 「 机器人 」利用冲程对称性调节实现仿生飞行器姿态与方向控制
  • 第十五届蓝桥杯大赛软件赛省赛C/C++ 大学 B 组
  • 本地大模型编程实战(02)语义检索(1)
  • 自定义命令执行器:C++中命令封装的深度探索(C/C++实现)
  • C语言程序设计十大排序—选择排序
  • C语言初阶牛客网刷题——HJ73 计算日期到天数转换【难度:简单】
  • MATLAB中alphanumericsPattern函数用法
  • 人工智能在教育领域的创新应用与前景展望
  • 约束布局 ConstraintLayout
  • 校园商铺管理系统设计与实现(代码+数据库+LW)
  • react native在windows环境搭建并使用脚手架新建工程
  • vulnhub DC-1靶机 walkthrough
  • 计算机网络 (58)无线局域网WLAN
  • 基于物联网的风机故障检测装置的设计与实现
  • 【AI日记】25.01.25
  • Sourcetree:一款高效便捷的Git版本控制客户端
  • 图像处理算法研究的程序框架
  • GitLab配置免密登录和常用命令
  • Chameleon(变色龙) 跨平台编译C文件,并一次性生成多个平台的可执行文件
  • 第十四讲 JDBC数据库
  • “AI教学实训系统:打造未来教育的超级引擎
  • java读取设置pdf属性信息
  • C语言内存管理详解
  • mysql从全备文件中提取单库或单表进行恢复——筑梦之路