Compute the CSS styles for a single item.
— the item's position in the array
— the currently centred / active index
— total number of items
Optionalwrap: booleanReturns the CSS style object for the track container itself.
Strategies may set perspective, overflow, etc.
Strategy that controls how carousel items are laid out and animated when the active index changes.
Two built-in implementations ship with the library:
Consumers may implement custom strategies by conforming to this interface.