[Carousel] Animation on Carousel Item change doesn't always occur #9232
Labels
4 - verified
Issues that have been released and confirmed resolved.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
c-carousel
Issues that pertain to the calcite-carousel component
Calcite (design)
Issues logged by Calcite designers.
calcite-components
Issues specific to the @esri/calcite-components package.
estimate - 3
A day or two of work, likely requires updates to tests.
impact - p2 - want for an upcoming milestone
User set priority impact status of p2 - want for an upcoming milestone
p - high
Issue should be addressed in the current milestone, impacts component or core functionality
Milestone
Check existing issues
Actual Behavior
The animation as Carousel Items cycle is not consistently displayed. Only when "jumping forward / backwards" are the correct animations being set via css class.
Screen.Recording.2024-04-30.at.7.58.33.PM.mov
Expected Behavior
The slides should animate in from the correct direction on each Carousel Item change.
Reproduction Sample
https://codepen.io/mac_and_cheese/pen/rNbgGQE?editors=1000
Reproduction Steps
Reproduction Version
2.8.0
Relevant Info
I think we need to clear the css class or animation at all times, and handle a case where the internal "direction state" isn't being set correctly, in
nextItem()
,previousItem()
,setSelectedItem()
internal functions.Regression?
No response
Priority impact
p2 - want for current milestone
Impact
Should be added to an upcoming patch release if possible.
Calcite package
Esri team
Calcite (design)
The text was updated successfully, but these errors were encountered: