pawelgrzybek / siema

Siema - Lightweight and simple carousel in pure JavaScript
https://pawelgrzybek.github.io/siema/
Other
3.48k stars 408 forks source link

Heavily nested divs - is this normal behavior? #266

Closed simplenotezy closed 4 years ago

simplenotezy commented 4 years ago

I'm not sure if I initiate the slider in a wrong way, or if this is normal behavior, but I notice all theese nested elements if I inspect the slider. Is this normal behavior?

image

If I don't initiate Siema my divs look like this:

image

pawelgrzybek commented 4 years ago

This is 100% expected.

This extra markup is needed for Siema to work correctly. It applies position, transition and hides elements outside of a wrapper.

Hopefully that helps 👋

simplenotezy commented 4 years ago

thanks a ton!