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

Fixes transition bug, adds markup to demonstrate it. #12

Closed paytonshaltis closed 1 year ago

paytonshaltis commented 1 year ago

Closes #10.

Fixes a bug where transitions ending within the child elements of a carousel would trigger the transitionend event for the entire carouselItemContainer, causing elements to be deleted and errors to be thrown. Fixes by ensuring that the target of the event is indeed carouselItemContainer.

Adds a new carousel with transition effects on it to demonstrate the change.