Skip to content

fan()

fan(options?): LayoutStrategy

Defined in: layout/fan.ts:47

The default layout: the front card at the origin, cards behind fanned to the negative side at decreasing scale, and a linear exit slot across depth -1 to 0 so a drag tracks the finger 1:1.

FanOptions = {}

LayoutStrategy

import { createRiffle, fan } from '@rpxl/riffle'
const riffle = createRiffle(stack, { count: 5, layout: fan({ scaleStep: 0.1 }) })