ValyroUI English version

Stagger

Списки, сетки и строки таблиц появляются волной, один за другим. Pro · 3D и моушн › Моушн для любых компонентов

Установка

npx valyro-cli@latest login
npx valyro-cli@latest add stagger
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { Stagger } from 'valyro-ui-pro';

Пропсы

PropTypeDefault
asChildbooleanfalseStaggers the items of the only child (a list, a grid, a table) instead of wrapping it in a div.
selectorstringThe items that enter, as a selector inside the container (tbody tr). Default: its element children.
intervalnumberDelay between neighbours, ms. Default: the theme's --ui-motion-stagger.
from'start' | 'center' | 'end' | 'random'Where the wave starts: the first item, the last, the middle or the edges.
maxStepsnumberAt most this many steps of delay, so a long list doesn't keep its last items waiting.
preset'fade' | 'up' | 'down' | 'start' | 'end' | 'scale' | 'pop' | 'flip'How the element enters: up rises, fade only fades, scale / pop grow, start / end slide in, flip swings up in 3D.
distancenumberTravel, px. Default: the theme's --ui-motion-distance.
durationnumberLength, ms. Default: the theme's --ui-motion-enter.
delaynumberWait before entering, ms.
springSpringNameThe spring the move follows. Default: the theme's --ui-motion-spring (pop bounces).
oncebooleanEnter once (default) or each time the element scrolls back into view.
amountnumberVisible share that starts the entrance, 0–1.
marginstringGrows or shrinks the viewport that counts, like a CSS margin.
disabledbooleanOff: the element is simply shown.
fadebooleanFade in while moving (default). false: only the move plays and the element keeps its full opacity, so its text is at its final contrast from the first frame (a figure that must stay readable, a scale emphasis). The fade preset then has nothing left to play.

Похожие компоненты

  • Reveal — Появление любого компонента при прокрутке: подъём, наплыв, 3D-разворот
  • Tilt — Наклон, подъём, блик и притяжение под курсором для любой карточки
  • Layout Group — Перестановка без прыжков: фильтр, сортировка, перестроение сетки
  • Presence — Появление и уход: элемент живёт, пока проигрывается выход
  • Scene Backdrop — WebGL- или CSS-сцена под обычным интерфейсом: hero, карточки, дашборд
  • Scroll Cylinder — Строки заголовка на вращающемся цилиндре — поворот от прокрутки
  • Stacking Panels — Панели прилипают при прокрутке и складываются в стопку
  • Helix Rail — Карточки на спирали, которая вращается от прокрутки
  • Scroll Scene — Сцена на прокрутке: закреплённый экран меняет картинку по шагам, шкала прогресса
  • Parallax Layers — Слои глубины, которые сдвигаются от прокрутки и курсора
  • Orbit Showcase — 3D-кольцо карточек: перетаскивание с инерцией, стрелки, клавиатура
  • Coverflow Carousel — 3D-карусель товаров на нативной прокрутке: свайп с инерцией, стрелки, клавиатура

Назад: Reveal · Далее: Tilt · Весь раздел «3D и моушн»