Text
JS behaviour
Scroll scramble
A pinned headline that “decodes” as you scroll — Persian with its own letters — while chips fly out of a side pile into a tidy row.
Real scenarios
The component as it is used in a product — not a specimen grid.
The scripts we speak
The pinned section of a language-product page: the headline decodes in step with the scroll and the 12 supported scripts fly out of a pile into a row.
Decoding every script
- English
- Español
- Français
- Deutsch
- 日本語
- 中文
- Arabic
- فارسی
- हिन्दी
- 한국어
- Türkçe
- Português
A privacy headline
Scrambling suits encryption stories: this one decodes with cuneiform glyphs, the Persian below with its own letters — charset picks the alphabet.
Privacy, letter by letter
- Encryption
- Compliance
- Transparency
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| title | string | '' | The headline being decoded; each script scrambles with letters of its own. |
| items | array | [] | The chips under the title; they start as a side pile and settle into a row with the scroll. |
| height | string | '220vh' | The height of the pinned section. |
| charset | string | null | The scramble alphabet: latin · persian · cuneiform or any custom string; empty picks one from the title’s script. |
| as | string | 'h2' | The heading level of the title. |
Snippet
<x-nx::scroll-scramble
title="رمزگشایی هر خط"
:items="['فارسی', 'العربية', 'English', '日本語']"
height="200vh" />