ablur
v0.0.2
Published
A small Lit-based library for creating configurable gradient backdrop blur effects.
Readme
ABlur
A small Lit-based library for creating configurable gradient backdrop blur effects.
Installation
npm install ablurUsing CDN
<head>
<script src="https://unpkg.com/ablur@latest/dist/index.js"></script>
</head>
<body>
<ablur-layer>
<span>ABlur Layer</span>
</ablur-layer>
</body>Component API
<ablur-layer>
layers(Number) — number of blur slices (higher = smoother, slower). Default: 2baseBlur(Number) — max blur in pixels atend-at. Default: 0end-at(Number) — percent (0–100) where blur reachesbaseBlur. Default: 12height(String) — height of the blur area (e.g.65%or400px). Default:100%flip(Boolean) — when present, reverses the blur direction (top → bottom)
