A11y Widget Demo

Try text size, dark mode, high-contrast, link underline, focus rings, image hiding, grayscale, pause animations, reading mask, and smarter TTS — all live on this page.

WCAG 2.1+ No dependencies
Quick test
Select text → Play

Accessibility is about making the web usable for everyone. Toggle “Hover to Read” and hover this card, or select this sentence and hit Play in the widget.

Install

https://github.com/codelyfe/A11y-Widget-Place-Anywhere

Paste this near the end of your page, before </body>:

<!-- A11y Widget — drop-in script (inline, no deps) -->
<script>
/* Copy the entire widget script block from the demo page (below) and paste it here.
   You can keep it inline, or move it into a self-hosted a11y-widget.js and use:
   <script src="/path/to/a11y-widget.js" defer></script>
*/
</script>

Optional self-hosted file:

<!-- Self-hosted file example -->
<script src="/assets/js/a11y-widget.js" defer></script>

Examples

Text size, spacing & dyslexia-friendly

Use the widget to change Text size. Try Text spacing and Dyslexia-friendly and see how this paragraph updates live across the page.

Sample article

Inclusive design ensures people with diverse abilities can perceive, understand, navigate, and interact with the web. Clear hierarchy, adequate contrast, and keyboard operability are foundational.

Use the Underline links toggle to ensure links are clearly identifiable, not just by color. Focus indicators also help keyboard and switch device users track their location.

Reader / TTS

Select any text and click Play in the widget. Or enable Hover to Read and hover over content. Adjust Rate and Pitch as needed.

“Accessibility is not a feature, it’s a social trend.”

Form Focus (always show focus)

Tab through these controls. Then toggle Always show focus in the widget.

Images (hide images)

Toggle Hide images to simulate low-bandwidth or reduce visual noise. Alt text remains available to assistive tech.

Gradient blue demo image
Pink and purple demo image

Pause Animations & Grayscale

Use Pause animations and Grayscale to calm motion and colors.

This animated square will stop when you pause animations.

Enable grayscale to desaturate the entire page.

Reading Mask

Toggle Reading mask and move your mouse to focus a horizontal band while reading:

Design with intention. Label form controls, provide sufficient color contrast, ensure keyboard operability, and support user preferences like reduced motion and larger text.

Assistive technologies help many users, but accessible design benefits everyone.