paytonshaltis / freighter

🚂 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).
https://paytonshaltis.github.io/freighter
MIT License
1 stars 0 forks source link

Fix button positions. #30

Closed paytonshaltis closed 1 year ago

paytonshaltis commented 1 year ago

Closes #7.

Buttons can now be sized in any unit, including pixels, percentages, and viewport fractions. If a button becomes larger (or starts larger) than the carousel item container, the container will grow so that the buttons remain inside. If a button becomes smaller (or starts smaller) than the carousel item container, the user can choose to either put the button on the top, center, or bottom of the container vertically.