Skip to content

Slide width of slide even after resize or transforms #23

Open
@Sirrine-Jonathan

Description

@Sirrine-Jonathan

I'm needing to perform a css scale transform on the div wrapping the carousel. The amount by which the the wrapper is scales changes when it's container is resized. When the wrapper is scaled, the amount by which each nav event causes the slides to travel is no longer consistent with their width.

I've tried changing the slide type to 'fluid' rather than 'fixed' and passing the new width of the slides after scaling as the slideAmount prop available to 'fluid' types, but the same problem persisted.

I also tried programmatically dispatching a window resize event whenever the scale amount changes after looking in your code to find a solution.

Am I doing something incorrect or is this a case that is not accounted for currently?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions