Skip to content

Issues with 3d automatic transformation #466

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

You must be logged in to vote

Hi @bloodylupin,

Embla reads slide sizes when it initializes and when sizes change. For this to work properly you need to disable any transforms on your slides and container that affects their sizes or positions before it re-initializes (for example, when resized).

One example that solves this is the iOS picker on the examples page. It disables Embla transforms. Look for the disableEmblaTransform function or similar.

The order of things that need to happen has to be the following on every re-initialization or resize:

  1. Remove all transforms on slides and the container that affects their sizes or positions in any way.
  2. Run embla.reInit().
  3. Inactivate Embla transforms.
  4. Add back your own transf…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by bloodylupin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants