ValyroUI English version

Orbit Showcase

3D-кольцо карточек: перетаскивание с инерцией, стрелки, клавиатура. Pro · 3D и моушн › 3D-объекты и витрины

Установка

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

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

Пропсы

PropTypeDefault
childrenReactNodeThe items on the ring, one per child: product cards, images — anything of the same width.
indexnumberIndex of the item facing the viewer (controlled).
defaultIndexnumber0Index of the item facing the viewer at first (uncontrolled).
onIndexChange(index: number) => voidCalled when another item is brought to the front: by a drag, the arrows, the keyboard or a click.
itemWidthnumber260Width of an item, px. On a narrow screen items shrink to fit (never below 160 px).
gapnumber28Space between neighbouring items around the ring, px.
tiltnumber6How far the ring tips towards the viewer, degrees: the far side rises above the front.
perspectivenumber1400Perspective of the scene, px: smaller is more dramatic.
autoplaynumber0Turns to the next item every so many ms (0 — never). Pauses on hover, focus, drag and off screen.
pausedbooleanfalseHolds the autoplay, e.g. from a pause button of the page (moving content must be pausable, WCAG 2.2.2).
controlsbooleantrueShows the previous / next buttons.
labelsPartial<OrbitShowcaseLabels>Text for assistive technology and the buttons.

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

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

Назад: Parallax Layers · Далее: Coverflow Carousel · Весь раздел «3D и моушн»