Hyperfixi Examples

Learn hyperscript patterns through interactive examples

45+ examples 12 categories 13 languages

Events & DOM

6 examples

Core event handling, DOM reads and writes, element visibility.

Toggle & State

2 examples

Toggle CSS classes, HTML attributes, and CSS properties.

Forms

2 examples

Input handling, validation, and form submission.

Dialogs

4 examples

Modal dialogs, native HTML dialog element, and smart toggle patterns.

Navigation

3 examples

Tab UIs, SPA-style history management, and boosted links.

Fetch & Async

3 examples

API calls, dynamic content loading, and async patterns.

Animation

4 examples

CSS transitions, color cycling, view transitions, and fade effects.

Drag & Drop

2 examples

Draggable elements and sortable lists with visual feedback.

Swap & Morph

3 examples

Intelligent DOM swapping, morphing, and multi-target updates.

JS Interop

2 examples

JavaScript integration, clipboard operations, and browser APIs.

Reusable Behaviors

1 example

Pre-built, tree-shakeable behaviors for common UI patterns.

Multilingual

9 examples

Write hyperscript in your native language. Supports 13 languages with grammar transformation for proper word order.