Dot Pattern
Tileable dot-grid background with a radial spotlight mask.
Dot Pattern
How to use it
- Paste the HTML where the components should appear.
- Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
- No JavaScript needed.
<!-- Dot Pattern · Bron: Magic UI · licentie MIT. Laat deze vermelding staan bij hergebruik. -->
<div class="jouw-container">
<div class="dotpattern-root"><span class="dotpattern-label">Dot Pattern</span></div>
</div>/* Dot Pattern · Bron: Magic UI · licentie MIT. Laat deze vermelding staan bij hergebruik. */
.dotpattern-root{position:absolute;inset:0;overflow:hidden;background:#0a0a10;display:flex;align-items:center;justify-content:center}
.dotpattern-root::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(150,150,180,.45) 1px,transparent 1px);background-size:16px 16px;-webkit-mask:radial-gradient(220px 140px at 50% 50%,#000,transparent);mask:radial-gradient(220px 140px at 50% 50%,#000,transparent)}
.dotpattern-label{position:relative;z-index:1;color:#dcdce6;font:600 18px 'Switzer',sans-serif}
More components
Seen something you like?
Add it to your selection and send it over. We build your site around it, in your brand.
Get in touch →