2 Commits

Author SHA1 Message Date
0f8448a9d1 fixed css 2025-11-22 22:30:35 +07:00
4aeb8c5661 added css example 2025-11-22 22:28:29 +07:00

View File

@@ -3,7 +3,7 @@ The library for creating creepy sticky background
## Example ## Example
```html ```html
<canvas class="wrap"></canvas> <canvas id="wrap"></canvas>
<svg style="position: absolute"> <svg style="position: absolute">
<defs> <defs>
@@ -39,6 +39,13 @@ import("/js/modules/womb3-simplex.mjs").then((module) => {
}, true); }, true);
}); });
``` ```
```css
#wrap {
background-color: black; /* can be alpha 50% and etc */
filter: url("#blob") contrast(var(--contrast, 30));
/* mix-blend-mode: ... cool effects with this */
}
```
## Installation ## Installation
```bash ```bash