Created
November 16, 2017 16:47
-
-
Save matchilling/7375ecc139d199d105249b9e155905ae to your computer and use it in GitHub Desktop.
A funny error face
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Error Face</title> | |
</head> | |
<body> | |
<span class="error-icon"> | |
<span class="error-face"> | |
<span class="error-face-eye left-eye eye-blink"></span> | |
<span class="error-face-eye right-eye eye-blink"></span> | |
<span class="error-mouth"></span> | |
</span> | |
</span> | |
<style> | |
.error-icon { | |
position: relative; | |
display: inline-block; | |
width: 90px; | |
height: 90px; | |
background-color: #fff; | |
border-radius: 50%; | |
} | |
.error-face { | |
display: inline-block; | |
position: absolute; | |
top: 27px; | |
left: 27px; | |
height: 37px; | |
width: 37px; | |
background-color: #db0a35; | |
border-radius: 50%; | |
} | |
.error-face-eye { | |
content: ''; | |
position: absolute; | |
display: inline-block; | |
width: 6px; | |
height: 6px; | |
background-color: #2b2b33; | |
border-radius: 50%; | |
} | |
.error-face-eye.left-eye { | |
top: 10px; | |
left: 8px; | |
} | |
.error-face-eye.right-eye { | |
top: 10px; | |
right: 8px; | |
} | |
.error-mouth { | |
position: absolute; | |
top: 20px; | |
left: 10px; | |
width: 18px; | |
height: 7px; | |
background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjE5cHgiIGhlaWdodD0iN3B4IiB2aWV3Qm94PSIwIDAgMTkgNyIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWxuczpza2V0Y2g9Imh0dHA6Ly93d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eat; | |
background-size: contain; | |
} | |
.eye-blink { | |
-webkit-animation-name: eye-blink; | |
animation-name: eye-blink; | |
-webkit-animation-duration: 4s; | |
animation-duration: 4s; | |
-webkit-animation-iteration-count: infinite; | |
animation-iteration-count: infinite; | |
-webkit-animation-timing-function: ease; | |
animation-timing-function: ease; | |
} | |
@-webkit-keyframes eye-blink { | |
0% { | |
-webkit-transform: scaleX(1) scaleY(1); | |
transform: scaleX(1) scaleY(1); | |
} | |
1% { | |
-webkit-transform: scaleX(1.3) scaleY(0); | |
transform: scaleX(1.3) scaleY(0); | |
} | |
2% { | |
-webkit-transform: scaleX(1) scaleY(1); | |
transform: scaleX(1) scaleY(1); | |
} | |
60% { | |
-webkit-transform: scaleX(1) scaleY(1); | |
transform: scaleX(1) scaleY(1); | |
} | |
61% { | |
-webkit-transform: scaleX(1.3) scaleY(0); | |
transform: scaleX(1.3) scaleY(0); | |
} | |
62% { | |
-webkit-transform: scaleX(1) scaleY(1); | |
transform: scaleX(1) scaleY(1); | |
} | |
65% { | |
-webkit-transform: scaleX(1) scaleY(1); | |
transform: scaleX(1) scaleY(1); | |
} | |
66% { | |
-webkit-transform: scaleX(1.3) scaleY(0); | |
transform: scaleX(1.3) scaleY(0); | |
} | |
67% { | |
-webkit-transform: scaleX(1) scaleY(1); | |
transform: scaleX(1) scaleY(1); | |
} | |
100% { | |
-webkit-transform: scaleX(1) scaleY(1); | |
transform: scaleX(1) scaleY(1); | |
} | |
} | |
@keyframes eye-blink { | |
0% { | |
-webkit-transform: scaleX(1) scaleY(1); | |
transform: scaleX(1) scaleY(1); | |
} | |
1% { | |
-webkit-transform: scaleX(1.3) scaleY(0); | |
transform: scaleX(1.3) scaleY(0); | |
} | |
2% { | |
-webkit-transform: scaleX(1) scaleY(1); | |
transform: scaleX(1) scaleY(1); | |
} | |
60% { | |
-webkit-transform: scaleX(1) scaleY(1); | |
transform: scaleX(1) scaleY(1); | |
} | |
61% { | |
-webkit-transform: scaleX(1.3) scaleY(0); | |
transform: scaleX(1.3) scaleY(0); | |
} | |
62% { | |
-webkit-transform: scaleX(1) scaleY(1); | |
transform: scaleX(1) scaleY(1); | |
} | |
65% { | |
-webkit-transform: scaleX(1) scaleY(1); | |
transform: scaleX(1) scaleY(1); | |
} | |
66% { | |
-webkit-transform: scaleX(1.3) scaleY(0); | |
transform: scaleX(1.3) scaleY(0); | |
} | |
67% { | |
-webkit-transform: scaleX(1) scaleY(1); | |
transform: scaleX(1) scaleY(1); | |
} | |
100% { | |
-webkit-transform: scaleX(1) scaleY(1); | |
transform: scaleX(1) scaleY(1); | |
} | |
} | |
</style> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment