Dev Tools · 2h ago
Rattribute.js lets devs swap HTML attributes based on viewport width
Rattribute.js is a lightweight, zero-dependency library that automatically updates HTML attributes like classes, targets, and ARIA at different viewport widths. It uses simple data-* attributes and supports Bootstrap-style breakpoints plus custom sizes. The library is written in TypeScript and detects new DOM elements automatically.
Meridian48 take
A handy tool for responsive design, but it's a niche utility that competes with CSS media queries and existing JavaScript solutions.
responsive-designjavascript-library