Optionaloptions: { fade?: boolean; gap?: number; itemWidth?: number }Compute the CSS styles for a single item.
— the item's position in the array
— the currently centred / active index
— total number of items
Returns the CSS style object for the track container itself.
Strategies may set perspective, overflow, etc.
Simple horizontal scroll strategy.
Items are laid out in a horizontal row and translated so the active item is centred. Only the active item and its immediate neighbours are fully opaque; the rest fade out.
Example