🚂 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).
Changed the construction of a Carousel to append the carousel's container inside of the provided div, rather than to replace it. This means the user's styles and sizing properties may be preserved.
Avoided making the change from CarouselManager to Carousel for the time being. It's likely a better idea to hold off renaming this until the name of the project is known, and rename this class in the same manner.
Provided a setter and getter for Carousel properties. Rather than making a separate getter and setter for each, the new CarouselProperties type was defined as an object with all optional properties.
Decided on the properties that should be changeable and those that should not be. Essentially all properties can be changeable, minus the three that are required to create a Carousel:
resizingMethod
wrappingMethod
containerID
Fixed a few issues involving bezier transitions with the 'none' wrapping, and button percentage sizing.
Closes #34, closes #51.
Carousel
to append the carousel's container inside of the provided div, rather than to replace it. This means the user's styles and sizing properties may be preserved.CarouselManager
toCarousel
for the time being. It's likely a better idea to hold off renaming this until the name of the project is known, and rename this class in the same manner.Carousel
properties. Rather than making a separate getter and setter for each, the newCarouselProperties
type was defined as an object with all optional properties.Carousel
:resizingMethod
wrappingMethod
containerID