Created
June 12, 2018 13:51
-
-
Save e1blue/8fbccb7ad71236231885141f68ecbe7d to your computer and use it in GitHub Desktop.
Flow #1
This file contains hidden or 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: 80x1 / 100vmax; | |
| } | |
| :container { | |
| transform: | |
| rotate(45deg) scale(4.6) | |
| translate(-10%, -15%); | |
| } | |
| @place-cell: center; | |
| @size: calc( | |
| 100% - @calc(@index() -1 ) * 100% / @size() | |
| ); | |
| transform: rotate(@rand(-2deg, 2deg, .1)); | |
| border-radius: @rand(28%, 35%, .1); | |
| background: @pick( | |
| #2fc5cc, #6df1cc, #e3ffc3, #29252c | |
| ); | |
| </css-doodle> |
This file contains hidden or 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
| document.body.addEventListener('click', function(e) { | |
| e.target.update && e.target.update(); | |
| }); |
This file contains hidden or 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.3.0/css-doodle.min.js"></script> |
This file contains hidden or 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 { | |
| margin: 0; | |
| overflow: hidden; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment