css+svg实现一个500错误页面效果代码

代码语言:html

所属分类:布局界面

代码描述:css+svg实现一个500错误页面效果代码

代码标签: css svg 500

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
    	.main-error-page {
    	min-height:600px;
    	margin:0 auto;
    	width:auto;
    	max-width:560px;
    	display:flex;
    	align-items:center;
    	justify-content:center;
    	flex-direction:column
    }
    .error-title {
    	max-width:529px;
    	font-family:Roboto;
    	font-size:38px;
    	font-weight:bold;
    	font-stretch:normal;
    	font-style:normal;
    	line-height:normal;
    	letter-spacing:normal;
    	text-align:center;
    	color:#4b4b62;
    	margin-bottom:16px
    }
    .error-subtitle {
    	max-width:568px;
    	font-family:Roboto;
    	font-size:16px;
    	font-weight:normal;
    	font-stretch:normal;
    	font-style:normal;
    	line-height:1.31;
    	letter-spacing:normal;
    	text-align:center;
    	color:#4b4b62;
    	margin-bottom:24px
    }
    svg {
    	margin-bottom:16px
    }
    .pao-atras {
    	animation:leftright 1s alternate infinite;
    	transform-origin:center
    }
    .pao-frente {
    	animation:leftright 1s .3s alternate infinite;
    	transform-origin:center
    }
    .olho-esq {
    	animation:sad 2s alternate infinite;
    	transform-origin:center
    }
    .olho-dir {
    	animation:sad 2s alternate infinite;
    	transform-origin:center
    }
    .boca {
    	animation:sad 2s alternate infinite;
    	transform-origin:center
    }
    .raios {
    	-webkit-animation:flicker-4 4s linear infinite both;
    	animation:flicker-4 4s linear infinite both
    }
    .tomada {
    	-webkit-animation:vibrate-1 3s linear infinite both;
    	animation:vibrate-1 3s linear infinite both
    }
    .fio-500 {
    	-webkit-animation:vibrate-1 3s linear infinite both;
    	animation:vibrate-1 3s linear infinite both
    }
    .fio {
    	-webkit-animation:vibrate-1 3s linear infinite both;
    	animation:vibrate-1 3s linear infinite both
    }
    @keyframes scales {
    	from {
    	transform:scale(0.98)
    }
    to {
    	transform:scale(1)
    }
    }@-webkit-keyframes flicker-4 {
    	0%,100% {
    	opacity:1
    }
    31.98% {
    	opacity:1
    }
    32% {
    	opacity:0
    }
    32.8% {
    	opacity:0
    }
    32.82% {
    	opacity:1
    }
    34.98% {
    	opacity:1
    }
    35% {
    	opacity:0
    }
    35.7% {
    	opacity:0
    }
    35.72% {
    	opacity:1
    }
    36.98% {
    	opacity:1
    }
    37% {
    	opacity:0
    }
    37.6% {
    	opacity:0
    }
    37.62% {
    	opacity:1
    }
    67.98% {
    	opacity:1
    }
    68% {
    	opacity:0
    }
    68.4% {
    	opacity:0
    }
    68.42% {
    	opacity:1
    }
    95.98% {
    	opacity:1
    }
    96% {
    	opacity:0
    }
    96.7% {
    	opacity:0
    }
    96.72% {
    	opacity:1
    }
    98.98% {
    	opacity:1
    }
    99% {
    	opacity:0
    }
    99.6% {
    	opacity:0
    }
    99.62% {
    	opacity:1
    }
    }@keyframes flicker-4 {
    	0%,100% {
    	opacity:1
    }
    31.98% {
    	opacity:1
    }
    32% {
    	opacity:0
    }
    32.8% {
    	opacity:0
    }
    32.82% {
    	opacity:1
    }
    34.98% {
    	opacity:1
    }
    35% {
    	opacity:0
    }
    35.7% {
    	opacity:0
    }
    35.72% {
    	opacity:1
    }
    36.98% {
    	opacity:1
    }
    37% {
    	opacity:0
    }
    37.6% {
    	opacity:0
    }
    37.62% {
    	opacity:1
    }
    67.98% {
    	opacity:1
    }
    68% {
    	opacity:0
    }
    68.4% {
    	opacity:0
    }
    68.42% {
    	opacity:1
    }
    95.98% {
    	opacity:1
    }
    96% {
    	opacity:0
    }
    96.7% {
    	opacity:0
    }
    96.72% {
    	opacity:1
    }
    98.98% {
    	opacity:1
    }
    99% {
    	opacity:0
    }
    99.6% {
    	opacity:0
    }
    99.62% {
    	opacity:1
    }
    }@-webkit-keyframes vibrate-1 {
    	0% {
    	-webkit-transform:translate(0);
    	transform:translate(0)
    }
    20% {
    	-webkit-transform:translate(-2px,2px);
    	transform:translate(-2px,2px)
    }
    40% {
    	-webkit-transform:translate(-2px,-2px);
    	transform:translate(-2px,-2px)
    }
    60% {
    	-webkit-transform:translate(2px,2px);
    	transform:translate(2px,2px)
    }
    80% {
    	-webkit-transform:translate(2px,-2px);
    	transform:translate(2px,-2px)
    }
    100% {
    	-webkit-transform:translate(0);
    	transform:translate(0)
    }
    }@keyframes vibrate-1 {
    	0% {
    	-webkit-transform:translate(0);
    	transform:translate(0)
    }
    20% {
    	-webkit-transform:translate(-2px,2px);
    	transform:translate(-2px,2px)
    }
    40% {
    	-webkit-transform:translate(-2px,-2px);
    	transform:translate(-2px,-2px)
    }
    60% {
    	-webkit-transform:translate(2px,2px);
    	transform:translate(2px,2px)
    }
    80% {
    	-webkit-transform:translate(2px,-2px);
    	transform:translate(2px,-2px)
    }
    100% {
    	-webkit-transform:translate(0);
    	transform:translate(0)
    }
    }@-webkit-keyframes wobble-ver-right {
    	0%,100% {
    	-webkit-transform:translateY(0) rotate(0);
    	transform:translateY(0) rotate(0);
    	-webkit-transform-origin:50% 50%;
    	transform-origin:50% 50%
    }
    15% {
    	-webkit-transform:translateY(-30px) rotate(6deg);
    	transform:translateY(-30px) rotate(6deg)
    }
    30% {
    	-webkit-transform:translateY(15px) rotate(-6deg);
    	transform:translateY(15px) rotate(-6deg)
    }
    45% {
    	-webkit-transform:translateY(-15px) rotate(3.6deg);
    	transform:translateY(-15px) rotate(3.6deg)
    }
    60% {
    	-webkit-transform:translateY(9px) rotate(-2.4deg);
    	transform:translateY(9px) rotate(-2.4deg)
    }
    75% {
    	-webkit-transform:translateY(-6px) rotate(1.2deg);
    	transform:translateY(-6px) rotate(1.2deg)
    }
    }@keyframes sad {
    	0% {
    	transform:rotateX(0deg) rotateY(0deg)
    }
    100% {
    	transform:rotateX(10deg) rotateY(5deg)
    }
    }@keyframes leftright {
    	0% {
    	transform:rotateZ(0deg)
    }
    100% {
    	transform:rotateZ(-15deg)
    }
    }
    </style>
</head>

<body>
    <!-- partial:index.partial.html -->
    <div class="main-error-page"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="auto" height="290" viewBox="0 0 470 290"><defs><path id="prefix__a" d="M221.677 31.582c-55.54 19.895-112.156 36.51-167.848 55.993C33.02 94.854 8.92 106.19 5.062 129.52c-2.513 15.198 5.634 31.108 17.898 38.96 5.99 3.835 13.34 6.531 16.472 13.261 4.87 10.459-3.88 22.449-13.113 28.531-9.236 6.083-20.5 10.905-24.704 21.695-1.121 2.876-1.61 5.944-1.615 9.05v.082c.006 4.547 1.05 9.169 2.674 13.386 10.06 26.125 39.391 37.567 65.477 36.17 26.086-1.398 50.827-12.414 76.417-18.085 43.668-9.678 88.389-3.63 133.098 2.418 45.256 6.122 90.501 12.244 134.63 2.054 13.65-3.153 27.4-8.086 37.944-17.999 11.883-11.174 18.63-28.03 19.648-45.048.069-1.15.106-2.31.112-3.477v-.557c-.067-15.128-5.551-31.08-17.856-37.794-7.833-4.274-17.195-4.1-25.7-1.775-5.43 1.485-10.766 3.811-16.368 3.85-5.601.04-11.763-3-13.386-8.812-1.707-6.11 2.182-12.416 6.642-16.586 9.073-8.477 21.203-12.714 29.44-22.137 7.927-9.07 11.265-22.586 8.575-34.734-2.692-12.149-11.326-22.552-22.189-26.73-14.224-5.471-29.105-.465-44.051 4.542-14.139 4.736-28.34 9.474-42.1 5.336-2.1-.63-4.312-1.606-5.418-3.643-1.08-1.989-.835-4.511-.214-6.719 3.468-12.355 16.938-20.22 17.528-33.12.322-7.01-3.504-13.572-8.325-18.26C327.188 4.247 316.599.782 305.483.782c-28.103 0-59.605 22.132-83.806 30.8z" /><path id="prefix__c" d="M39.89.625c-2.162 6.638-7.77 12.79-13.571 16.612-9.236 6.082-20.5 10.904-24.704 21.694C.494 41.807.005 44.875 0 47.98v.082c.006 4.547 1.05 9.17 2.674 13.386 10.06 26.126 39.391 37.568 65.477 36.17 26.086-1.397 50.827-12.414 76.417-18.085 43.668-9.678 88.389-3.629 133.098 2.419 45.256 6.122 90.501 12.244 134.63 2.054 13.65-3.154 27.4-8.086 37.944-18 11.883-11.174 18.63-28.03 19.648-45.048.069-1.15.106-2.31.112-3.477v-.557c-.025-5.484-.761-11.079-2.277-16.3H39.89z" /><path id="prefix__e" d="M.99 2.778v5.157c0 1.457 1.467 2.638 3.277 2.638s3.278-1.181 3.278-2.638V2.778c0-1.457-1.467-2.637-3.278-2.637C2.457.141.99 1.321.99 2.778z" /><path id="prefix__g" d="M.577 2.778v5.157c0 1.457 1.468 2.638 3.279 2.638 1.81 0 3.278-1.181 3.278-2.638V2.778c0-1.457-1.468-2.637-3.278-2.637S.576 1.321.576 2.778z" /><path id="prefix__i" d="M.39 2.037c0 1.08.88 1.956 1.966 1.956 1.087 0 1.968-.877 1.968-1.956 0-1.08-.88-1.956-1.968-1.956C1.27.081.39.957.39 2.037z" /><path id="prefix__k" d="M.39 2.466c0 1.08.88 1.956 1.966 1.956 1.087 0 1.968-.875 1.968-1.956 0-1.079-.88-1.954-1.968-1.954C1.27.512.39 1.387.39 2.466z" /><path id="prefix__m" d="M1.963.022C.893.022.026.898.026 1.977c0 1.08.867 1.956 1.937 1.956H16.45c1.068 0 1.935-.876 1.935-1.956 0-1.079-.867-1.955-1.935-1.955H1.963z" /><path id="prefix__o" d="M5.214 5.34c-.85 3.38 1.072 5.145 5.14 11.15L.464 55.893l44.419 11.492 9.888-39.401c6.384-3.286 8.919-3.909 9.77-7.295.793-3.159-1.093-6.383-4.206-7.189L12.294 1.071c-.48-.125-.962-.185-1.437-.185-2.598 0-4.972 1.783-5.643 4.453z" /><path id="prefix__q" d="M5 6.465c-1.055 4.052 1.213 6.332 4.666 11.2l-9.2 35.38 2.075.52 9.442-36.306c-3.886-5.53-5.717-7.165-4.909-10.276.758-2.91 3.791-4.675 6.762-3.933l45.868 11.453c2.971.742 4.772 3.714 4.015 6.624-.81 3.118-3.222 3.687-9.328 6.72L44.95 64.154l2.076.518 9.2-35.38c5.404-2.654 8.514-3.59 9.57-7.646 1.047-4.032-1.447-8.15-5.563-9.177L14.365 1.016c-.635-.159-1.273-.234-1.9-.234-3.44 0-6.58 2.274-7.465 5.683z" /><path id="prefix__s" d="M5.916.737C2.89.737.428 3.265.428 6.37c0 3.326 2.16 4.498 7.25 9.07v32.236h43.2V15.44c5.077-4.56 7.25-5.74 7.25-9.07 0-3.105-2.462-5.633-5.488-5.633H5.916z" /><path id="prefix__u" d="M7.721.63C3.638.63.314 4.073.314 8.3c0 4.249 2.667 5.935 7.065 9.878v30.697h2.058V17.21C4.476 12.72 2.375 11.562 2.375 8.3c0-3.05 2.398-5.535 5.346-5.535h45.511c2.949 0 5.347 2.484 5.347 5.534 0 3.269-2.108 4.422-7.062 8.911v31.665h2.06V18.178c4.389-3.939 7.061-5.626 7.061-9.879 0-4.227-3.32-7.668-7.406-7.668H7.722z" /><path id="prefix__w" d="M4.278.171C2.09.171.314 1.931.314 4.097v43c0 2.168 1.776 3.926 3.964 3.926H69.79c2.187 0 3.963-1.758 3.963-.........完整代码请登录后点击上方下载按钮下载查看

网友评论0