Skip to content

No animation in navigation using dispatch({increment: number, duration: number}) #81

Discussion options

You must be logged in to vote

v3 UPDATE

v3 now provides dedicated prev / next methods to navigate to the previous / next slide. These methods can be accessed in one of the following ways:

  • inside the lightbox - via useController hook
  • outside the lightbox - via Controller Ref

It is expected behavior. Modifying the lightbox state in such a way skips the first step in FLIP animation.

Please use ACTION_PREV / ACTION_NEXT events to navigate to the previous/next slide.

const { publish } = useEvents();

publish(ACTION_NEXT);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amarnath-cohesive
Comment options

Answer selected by amarnath-cohesive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants