Created
May 13, 2021 06:44
-
-
Save motrdevua/dfc09b2dc6160406a1331900e666d604 to your computer and use it in GitHub Desktop.
sakura
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
Empty File<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> | |
#petals { | |
position: relative; | |
top: -50px; | |
width: 100%; | |
text-align: right; | |
} | |
#petals i { | |
z-index: 1; | |
display: inline-block; | |
width: 200px; | |
height: 150px; | |
border-radius: 60% 20% 70%; | |
background: linear-gradient(90deg, rgba(255, 183, 215, 1) 0%, rgba(255, 255, 255, .001) 100%, rgba(255, 255, 255, 0) 100%); | |
box-shadow: inset 0 0 1px rgba(255, 183, 215, 1); | |
-webkit-transform: skew(20deg); | |
transform: skew(20deg); | |
-webkit-animation: falling 5s 0s infinite; | |
animation: falling 5s 0s infinite; | |
} | |
#petals i:nth-of-type(2n) { | |
-webkit-animation: falling2 5s 0s infinite; | |
animation: falling2 5s 0s infinite; | |
} | |
#petals i:nth-of-type(3n) { | |
-webkit-animation: falling3 5s 0s infinite; | |
animation: falling3 5s 0s infinite; | |
} | |
#petals i:nth-of-type(2n+1) { | |
width: 16px; | |
height: 11px; | |
} | |
#petals i:nth-of-type(3n+2) { | |
width: 23px; | |
height: 17px; | |
} | |
#petals i:nth-of-type(n) { | |
width: 30px; | |
height: 23px; | |
-webkit-animation-delay: 1.9s; | |
animation-delay: 1.9s; | |
} | |
#petals i:nth-of-type(2n) { | |
-webkit-animation-delay: 3.9s; | |
animation-delay: 3.9s; | |
} | |
#petals i:nth-of-type(3n) { | |
-webkit-animation-delay: 2.3s; | |
animation-delay: 2.3s; | |
} | |
#petals i:nth-of-type(4n) { | |
-webkit-animation-delay: 4.4s; | |
animation-delay: 4.4s; | |
} | |
#petals i:nth-of-type(5n) { | |
-webkit-animation-delay: 5s; | |
animation-delay: 5s; | |
} | |
#petals i:nth-of-type(6n) { | |
-webkit-animation-delay: 3.5s; | |
animation-delay: 3.5s; | |
} | |
#petals i:nth-of-type(7n) { | |
-webkit-animation-delay: 2.8s; | |
animation-delay: 2.8s; | |
} | |
#petals i:nth-of-type(8n) { | |
-webkit-animation-delay: 1.5s; | |
animation-delay: 1.5s; | |
} | |
#petals i:nth-of-type(9n) { | |
-webkit-animation-delay: 3.3s; | |
animation-delay: 3.3s; | |
} | |
#petals i:nth-of-type(10n) { | |
-webkit-animation-delay: 2.5s; | |
animation-delay: 2.5s; | |
} | |
#petals i:nth-of-type(11n) { | |
-webkit-animation-delay: 1.2s; | |
animation-delay: 1.2s; | |
} | |
#petals i:nth-of-type(12n) { | |
-webkit-animation-delay: 4.1s; | |
animation-delay: 4.1s; | |
} | |
#petals i:nth-of-type(13n) { | |
-webkit-animation-delay: 1s; | |
animation-delay: 1s; | |
} | |
#petals i:nth-of-type(14n) { | |
-webkit-animation-delay: 4.7s; | |
animation-delay: 4.7s; | |
} | |
#petals i:nth-of-type(15n) { | |
-webkit-animation-delay: 3s; | |
animation-delay: 3s; | |
} | |
#petals i:nth-of-type(2n+2) { | |
background: linear-gradient(90deg, rgba(255, 183, 215, 1) 0%, rgba(255, 255, 255, .001) 100%, rgba(255, 255, 255, 0) 100%); | |
} | |
#petals i:nth-of-type(4n+1) { | |
background: linear-gradient(90deg, rgba(255, 183, 215, 1) 0%, rgba(255, 255, 255, .001) 100%, rgba(255, 255, 255, 0) 100%); | |
} | |
#petals i:nth-of-type(3n+1) { | |
opacity: .5; | |
} | |
#petals i:nth-of-type(3n+2) { | |
opacity: .3; | |
} | |
#petals i:nth-of-type(n) { | |
background: linear-gradient(90deg, rgba(255, 183, 215, 1) 0%, rgba(255, 255, 255, .001) 100%, rgba(255, 255, 255, 0) 100%); | |
opacity: .7; | |
-webkit-transform: rotate(180deg); | |
transform: rotate(180deg); | |
-webkit-animation-timing-function: ease-in-out; | |
animation-timing-function: ease-in-out; | |
} | |
@-webkit-keyframes falling { | |
0% { | |
-webkit-transform: translate3d(300, 0, 0) rotate(0deg); | |
} | |
100% { | |
opacity: 0; | |
-webkit-transform: translate3d(-350px, 700px, 0) rotate(90deg); | |
} | |
} | |
@keyframes falling { | |
0% { | |
-webkit-transform: translate3d(300, 0, 0) rotate(0deg); | |
} | |
100% { | |
opacity: 0; | |
-webkit-transform: translate3d(-350px, 700px, 0) rotate(90deg); | |
} | |
} | |
@-webkit-keyframes falling3 { | |
0% { | |
-webkit-transform: translate3d(0, 0, 0) rotate(-20deg); | |
} | |
100% { | |
opacity: 0; | |
-webkit-transform: translate3d(-230px, 640px, 0) rotate(-70deg); | |
} | |
} | |
@keyframes falling3 { | |
0% { | |
-webkit-transform: translate3d(0, 0, 0) rotate(-20deg); | |
} | |
100% { | |
opacity: 0; | |
-webkit-transform: translate3d(-230px, 640px, 0) rotate(-70deg); | |
} | |
} | |
@-webkit-keyframes falling2 { | |
0% { | |
-webkit-transform: translate3d(0, 0, 0) rotate(90deg); | |
} | |
100% { | |
opacity: 0; | |
-webkit-transform: translate3d(-400px, 680px, 0) rotate(0deg); | |
} | |
} | |
@keyframes falling2 { | |
0% { | |
-webkit-transform: translate3d(0, 0, 0) rotate(90deg); | |
} | |
100% { | |
opacity: 0; | |
-webkit-transform: translate3d(-400px, 680px, 0) rotate(0deg); | |
} | |
} | |
</style> | |
</head> | |
<body> | |
<div id="petals"> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment