ValyroUI English version

Helix Rail

Карточки на спирали, которая вращается от прокрутки. Pro · 3D и моушн › Сцены на прокрутке

Установка

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

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

Пропсы

PropTypeDefault
mode'pass' | 'pin''pin'pin — the scene sticks mid-viewport and the helix turns item by item while the page scrolls on (the root grows by pace px per item); pass — it turns while the block crosses the viewport.
stepnumber32Angle between neighbouring items around the axis, degrees.
risenumber84How much lower each next item sits on the helix, px.
radiusnumberDistance from the axis to an item, px. Default: just enough for neighbouring items not to cut into each other.
itemWidthnumber240Width of an item, px.
heightnumber520Height of the scene, px.
pacenumber200pin: scroll distance per item, px.
range[number, number][0.15, 0.85]pass: the part of the crossing (0 — entering at the bottom, 1 — leaving at the top) over which the helix turns from the first item to the last.
smoothingnumber0.14How long the helix takes to catch up with the scroll position, seconds; 0 follows it exactly.
perspectivenumber1300Perspective of the scene, px: smaller is more dramatic.
onActiveChange(index: number) => voidCalled when another item comes to the front.

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

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

Назад: Stacking Panels · Далее: Scroll Scene · Весь раздел «3D и моушн»