Skip to content

Instantly share code, notes, and snippets.

@oharsta
Created February 10, 2022 12:20
Show Gist options
  • Save oharsta/db30aeccdd949326900f13197aa7d981 to your computer and use it in GitHub Desktop.
Save oharsta/db30aeccdd949326900f13197aa7d981 to your computer and use it in GitHub Desktop.
Noise example
<css-doodle click-to-update>
<style>
@grid: 80x1 / 80vmin;
@size: @rn(0, 100%, 5);
@offset: @plot(r: .5);
@random(.3) { filter: blur(2px) }
background-size: 35%;
background-image: @svg(
viewBox: 0 0 10 10;
circle {
r: @rn(0, .5, 5); cx: 9; cy: 5;
fill: hsl(@rn(0, 360, 8), 80%, 50%);
}
);
</style>
</css-doodle>
<script src="https://unpkg.com/css-doodle@0.24.0/css-doodle.min.js"></script>
html, body {
margin: 0;
height: 100%;
background: #12142E;
display: grid;
place-items: center;
overflow: hidden;
user-select: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment