DaveKeehl / svelte-reveal

Svelte action that leverages the Intersection Observer API to trigger reveal on scroll transitions.
https://stackblitz.com/edit/svelte-reveal?file=src%2FApp.svelte
MIT License
131 stars 3 forks source link

[Bug]: Can't use this unfortunatly #224

Open JeffWScott opened 1 week ago

JeffWScott commented 1 week ago

Type of Svelte app

Svelte Vite template

Describe the bug

Element gets wrapped in a "data-action" div. Div constrains the elements size.

Reproduction

<h1 use:reveal class="sr__hide">Hello world</h1> turns into: <div data-action="reveal" class="sr__7153687886990808__properties"><h1 class="s-YAiGFDDAzbUx">Hello world</h1></div>

System Info

N/A

Severity

Blocking

Additional Information

If the package is going to wrap my elements and not allow me to effect those elements this this is a non-started for me.

DaveKeehl commented 1 week ago

Thank you for filing this bug report. What version of svelte-reveal are you running? Could you please provide a more thorough reproduction environment (either a more complete code snippet or a code sandbox) showcasing the problem?

The package does wrap your element but isn't supposed to prevent you from sizing it the way you want to.