Files
michaelschiemer/resources/js/docs/SCROLL_LOOP.md

10 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
| Attribut | Typ | Standardwert | Beschreibung |
| ------------------- | ---------------------------------------------------------- | ------------- | ------------------------------------------------------------------------- |
| `data-scroll-loop` | — | — | Aktiviert das Scroll-Loop-Modul auf dem Element |
| `data-scroll-speed` | `float` | `0.2` | Faktor für Scrollgeschwindigkeit positiv oder negativ |
| `data-scroll-axis` | `"x"` \| `"y"` | `"y"` | Achse der Bewegung |
| `data-scroll-type` | `"translate"` \| `"rotate"` \| `"background"` \| `"scale"` | `"translate"` | Art der Scrollanimation |
| `data-loop-offset` | `float` | `0` | Start-Offset in Pixeln (nützlich für Desynchronisation mehrerer Elemente) |
| `data-loop-limit` | `number` (Pixelwert) | — | Obergrenze für Scrollbereich ab dieser Position stoppt die Animation |
| `data-loop-pause` | `"true"` \| `"false"` | — | Bei `"true"` wird die Animation bei Hover oder aktivem Element pausiert |