Skip to content

.splide__track item changes its height upon sliding, resulting in a jumpy UX between the slider and the content below #1011

@lunule

Description

@lunule

Checks

Version

v4.1.2

Description

When the rewind and omitEnd options are set to true, the slider works in an ugly, jumpy way: upon each sliding, there's a jump, pushing down the content below the slider.

Actually, I tested this without any options specified (so purely with the slider's default options), with no custom CSS at all, and by specifically taking care of mounting the slider only upon Dom content loaded - but anything I do, the result is the same: if there's no slide/slider height specified, there's the jump.

As the slides contain text as well, their height can not be fixed. But/and the jump is there even if I use the autoHeight option.

Reproduction Link

https://stageaon3d.wpengine.com/industries/aerospace-and-defense/#aerospace--grademats

Steps to Reproduce

  1. Click over the slider and slide with the keyboard (or with the mouse)
  2. You'll see the content below the slider jumps upon each sliding animation.

Expected Behaviour

The expected behaviour is a consistent, nice UI without jumps upon sliding.

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