css-doodle/samples/circles.html

32 lines
703 B
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>demo</title>
<style>
html, body { height: 100%; margin: 0; padding: 0;}
body { overflow: hidden; }
body { display: flex; align-items: center; justify-content: center }
</style>
<script src="../css-doodle.js"></script>
</head>
<body>
<div>
<css-doodle grid="5">
:host {
width: 50vh;
height: 50vh;
border-radius: 50%;
overflow: hidden;
background: #f1ffd9;
}
--size: @rand(200%);
width: var(--size);
height: var(--size);
background: hsla(@rand(100), 80%, 50%, @rand(.8));
border-radius: 50%;
</css-doodle>
</div>
</body>
</html>