Skip to content

[Help]: Question about CSS rules used #838

Closed Answered by davidjerleke
meirroth asked this question in Help
Discussion options

You must be logged in to vote

Hi @meirroth,

Thanks for your question.

backface-visibility: hidden; on embla__container

backface-visibility: hidden; is there because sometimes some browsers struggle with rendering transforms, which Embla is using to create its scroll effect. For example it can fix unwanted flickering and/or jagged edges. Please read this StackOverflow answer to understand it better.

min-width: 0; on embla__slide

This is here to prevent slides and slide content to grow larger than their slide container. Please read about why this is necessary here.

I think I figured out why touch-action: pan-y; on embla__container.

touch-action: pan-y; should be applied to horizontal carousels to prevent the page …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@meirroth
Comment options

Answer selected by meirroth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
resolved This issue is resolved question Question about how to achieve something
2 participants