🚂 Freighter is a highly-customizable HTML carousel library featuring a number of dynamic properties affecting carousel items and transitions. Most prominently, it gives complete control over the resizing method (for responsive layouts) as well as the wrapping method (for content display).
The user can now configure the following attributes on each carousel:
transition-duration
transition-timing-function
transition-delay
Because the cubic-bezier() transition functions have the possibility of rolling backward or forwards, if it is detected that one of these transitions is being used, a deep copy of the appropriate items will be used instead of a dummy value. Note that it will not add extra items (as of now), so the user still needs to make sure that it doesn't scroll past the elements.
Fixes a small issue with trying to resize while an animation is playing. Now, the items don't change the size, and the carousel container and items are resized as soon as the transition is over.
Closes #21.
The user can now configure the following attributes on each carousel:
transition-duration
transition-timing-function
transition-delay
Because the
cubic-bezier()
transition functions have the possibility of rolling backward or forwards, if it is detected that one of these transitions is being used, a deep copy of the appropriate items will be used instead of a dummy value. Note that it will not add extra items (as of now), so the user still needs to make sure that it doesn't scroll past the elements.Fixes a small issue with trying to resize while an animation is playing. Now, the items don't change the size, and the carousel container and items are resized as soon as the transition is over.