乐于分享
好东西不私藏

一个贼眉鼠眼的404错误页【源码】

一个贼眉鼠眼的404错误页【源码】

我能为你提供什么服务?

网站建设 | 小程序开发 |  软件定制

我是鹏魔王,一个做网站、小程序的程序员,记录生活日常、及技术分享。

本欲起身离红尘,奈何影子落人间,欢迎关注,祝大家早日实现财务自由!

已关注

关注

重播 分享

发现一个好玩的404特效页面,贼眉鼠眼的~404错误页
<!DOCTYPE html><htmllang="en">  <head>    <metacharset="UTF-8">    <title>404 Error Face 鹏魔王</title>    <metaname="viewport"content="width=device-width, initial-scale=1, viewport-fit=cover">    <linkrel="stylesheet"href="./style.css">  </head>  <body>  <main>	<svgclass="face"viewBox="0 0 320 380"width="320px"height="380px"aria-label="A 404 becomes a face, looks to the sides, and blinks. The 4s slide up, the 0 slides down, and then a mouth appears.">		<g		   fill="none"		   stroke="currentcolor"		   stroke-linecap="round"		   stroke-linejoin="round"		   stroke-width="25"		   >			<gclass="face__eyes"transform="translate(0, 112.5)">				<gtransform="translate(15, 0)">					<polylineclass="face__eye-lid"points="37,0 0,120 75,120" />					<polylineclass="face__pupil"points="55,120 55,155"stroke-dasharray="35 35" />				</g>				<gtransform="translate(230, 0)">					<polylineclass="face__eye-lid"points="37,0 0,120 75,120" />					<polylineclass="face__pupil"points="55,120 55,155"stroke-dasharray="35 35" />				</g>			</g>			<rectclass="face__nose"rx="4"ry="4"x="132.5"y="112.5"width="55"height="155" />			<gstroke-dasharray="102 102"transform="translate(65, 334)">				<pathclass="face__mouth-left"d="M 0 30 C 0 30 40 0 95 0"stroke-dashoffset="-102" />				<pathclass="face__mouth-right"d="M 95 0 C 150 0 190 30 190 30"stroke-dashoffset="102" />			</g>		</g>	</svg></main>  </body></html>
* {  border0;  box-sizing: border-box;  margin0;  padding0;}:root {  --hue223;  --sat10%;  --lighthsl(var(--hue), var(--sat), 95%);  --darkhsl(var(--hue), var(--sat), 5%);  --trans-dur0.3s;  color-scheme: light dark;  font-sizeclamp(1rem0.95rem + 0.25vw1.25rem);}body {  background-colorlight-dark(var(--light), var(--dark));  colorlight-dark(var(--dark), var(--light));  font1em/1.5 sans-serif;  display: grid;  place-items: center;  height100vh;  transition: background-color var(--trans-dur), color var(--trans-dur);}main {  padding1.5em 0;}.face {  display: block;  width12em;  height: auto;}.face__eyes.face__eye-lid.face__mouth-left.face__mouth-right.face__nose.face__pupil {  animation: eyes 1s 0.3s cubic-bezier(0.6500.351) forwards;}.face__eye-lid.face__pupil {  animation-duration4s;  animation-delay1.3s;  animation-iteration-count: infinite;}.face__eye-lid {  animation-name: eye-lid;}.face__mouth-left.face__mouth-right {  animation-timing-functioncubic-bezier(0.3310.681);}.face__mouth-left {  animation-name: mouth-left;}.face__mouth-right {  animation-name: mouth-right;}.face__nose {  animation-name: nose;}.face__pupil {  animation-name: pupil;}/* Animations */@keyframes eye-lid {  from40%45%to {    transformtranslateY(0);  }  42.5% {    transformtranslateY(17.5px);  }}@keyframes eyes {  from {    transformtranslateY(112.5px);  }  to {    transformtranslateY(15px);  }}@keyframes pupil {  from37.5%40%45%87.5%to {    stroke-dashoffset0;    transformtranslate(00);  }  12.5%25%62.5%75% {    stroke-dashoffset0;    transformtranslate(-35px0);  }  42.5% {    stroke-dashoffset35;    transformtranslate(017.5px);  }}@keyframes mouth-left {  from50% {    stroke-dashoffset: -102;  }  to {    stroke-dashoffset0;  }}@keyframes mouth-right {  from50% {    stroke-dashoffset102;  }  to {    stroke-dashoffset0;  }}@keyframes nose {  from {    transformtranslate(00);  }  to {    transformtranslate(022.5px);  }}
本站文章均为手工撰写未经允许谢绝转载:夜雨聆风 » 一个贼眉鼠眼的404错误页【源码】

猜你喜欢

  • 暂无文章