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.
Parameters
Section titled “Parameters”options?
Section titled “options?”FanOptions = {}
Returns
Section titled “Returns”Example
Section titled “Example”import { createRiffle, fan } from '@rpxl/riffle'
const riffle = createRiffle(stack, { count: 5, layout: fan({ scaleStep: 0.1 }) })