Skip to content

Instantly share code, notes, and snippets.

@e1blue
Created June 12, 2018 13:51
Show Gist options
  • Select an option

  • Save e1blue/8fbccb7ad71236231885141f68ecbe7d to your computer and use it in GitHub Desktop.

Select an option

Save e1blue/8fbccb7ad71236231885141f68ecbe7d to your computer and use it in GitHub Desktop.
Flow #1
<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>
document.body.addEventListener('click', function(e) {
e.target.update && e.target.update();
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/css-doodle/0.3.0/css-doodle.min.js"></script>
html, body {
margin: 0;
overflow: hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment