codepens/randomly-generated-diamond-.../dist/index.html

34 lines
862 B
HTML

<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>CodePen - Randomly Generated Diamond Art #CodePenChallenge</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
<div class="container">
<div class="container__elements">
<css-doodle>
:doodle {
@grid: 100x100;
@size: 45vmax;
@shape: diamond;
grid-gap: 1px;
}
@shape: @pick(triangle, rhombus, hexagon, heptagon, pentagon, octogon, circle);
--hue: calc(360 + .9 * @row() * @col());
background: hsla(var(--hue), 90%, 70%, @r(.1, .9));
transform: scale(@rand(.1,.9));
</css-doodle>
</div>
</div>
<!-- partial -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/css-doodle/0.4.9/css-doodle.min.js'></script><script src="./script.js"></script>
</body>
</html>