Created
October 5, 2018 08:09
-
-
Save softwebtuts/f49a5823e0a81f978f38b17eaa6fa908 to your computer and use it in GitHub Desktop.
Seeding
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
<css-doodle> | |
:doodle { | |
@grid: 50x1 / 50vmin; | |
perspective: 23vmin; | |
} | |
background: @multi(@r(200, 240), ( | |
radial-gradient( | |
@p(#00b8a9, #f8f3d4, #f6416c, #ffde7d) 15%, | |
transparent 50% | |
) @r(100%) @r(100%) / @r(1%, 3%, .1) @lr() no-repeat | |
)); | |
@size: 80%; | |
@place-cell: center; | |
border-radius: 50%; | |
transform-style: preserve-3d; | |
animation: scale-up 20s linear infinite; | |
animation-delay: calc(@i() * -.4s); | |
@keyframes scale-up { | |
0% { | |
opacity: 0; | |
transform: translate3d(0, 0, 0) rotate(0); | |
} | |
10% { | |
opacity: 1; | |
} | |
95% { | |
transform: | |
translate3d(0, 0, @r(50vmin, 55vmin)) | |
rotate(@r(-360deg, 360deg)); | |
} | |
100% { | |
opacity: 0; | |
transform: translate3d(0, 0, 1vmin); | |
} | |
} | |
</css-doodle> |
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/css-doodle/0.4.9/css-doodle.min.js"></script> |
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
html, body { | |
height: 100%; | |
margin: 0; | |
overflow: hidden; | |
} | |
body { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
background: #000; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment