jlmakes / scrollreveal

Animate elements as they scroll into view.
https://scrollrevealjs.org/
22.41k stars 2.25k forks source link

Sveltekit: scrollreveal not working #548

Open sc00 opened 2 years ago

sc00 commented 2 years ago

Hi,

I've been trying to use scrollreveal in the context of Sveltekit. It's not working however. The ScrollReveal object looks good to me - elements with the associated classes are present, computed styling etc. seem correct - however the inline-styles are not being applied.

Any idea why that is? I've tried using it via CDN as well as installing the package with npm.

Thanks and cheers

opencoca commented 1 year ago

On a similar note scrollreveal messes with the opacity of Alpine's x-transitions. It must not be applied on elements that are under x-transitions control otherwise they will remain opacity:0 on alpine's reveal.