Skip to content

Carousel changes height back and forth after slide animation is finished causing all subsequent elements to wiggle down and up. #1361

@supa-freak

Description

@supa-freak

Checks

Version

v4.1.4

Description

This issue does not occur in v3.
After scrolling left or right, as soon as the animation ends, there seems to be a wiggle that increases the height of the carousel for a split second, causing the rest of the page to jump down and up again.
You can also see 3 dots appearing during that split second on the left bottom corner of the active slide, which might be part of the issue.

Reproduction Link

https://codesandbox.io/p/sandbox/xywd6t

Steps to Reproduce

  1. open codesandbox
  2. scroll left or right.
  3. you will see the arrows jump down and up (this is the effect of the carousel increasing and decreasing its height)

Expected Behaviour

this height increase + decrease should not happen, it causes very bad layout shift plus an unpleasant experience for the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions