Horror Effect in your Blog Start Code <html> <head> <title>Truth or Dare?</title> <body> <styl...
Horror Effect in your Blog
Start Code
<html>
<head>
<title>Truth or Dare?</title>
<body>
<style>
@import url(https://fonts.googleapis.com/css?family=Finger+Paint);
body {
background: black;
overflow: hidden;
font: 5vw/100vh "Finger Paint";
text-align: center;
color: transparent;
backface-visibility: hidden;
}
span {
display: inline-block;
text-shadow: 0 0 0 whitesmoke;
animation: smoky 5s 3s both;
}
span:nth-child(even) {
animation-name: smoky-mirror;
}
@keyframes smoky {
60% {
text-shadow: 0 0 40px whitesmoke;
}
to {
transform:
translate3d(15rem, -8rem, 0) rotate(-40deg) skewX(70deg) scale(1.5);
text-shadow: 0 0 20px whitesmoke;
opacity: 0;
}
}
@keyframes smoky-mirror {
60% {
text-shadow: 0 0 40px whitesmoke;
}
to {
transform:
translate3d(18rem, -8rem, 0) rotate(-40deg) skewX(-70deg) scale(2);
text-shadow: 0 0 20px whitesmoke;
opacity: 0;
}
}
@for $item from 1 through 21 {
span:nth-of-type(#{$item}) {
animation-delay: #{(3 + ($item/10))}s;
}
}
</style>
<span>T</span><span>R</span><span>U</span><span>T</span><span>H</span><span> </span><span></span><span>o</span><span>r</span><span> </span><span> </span><span></span><span>D</span><span></span><span>A</span><span>R</span><span>E</span><span>?</span>
</body>
</html>
End Code
ليست هناك تعليقات