Use Svelte shorthand for CSS variables declaration

This commit is contained in:
2022-08-01 20:58:59 +02:00
parent e499f69574
commit c91166d548
6 changed files with 10 additions and 7 deletions

View File

@@ -67,7 +67,7 @@
<svelte:element this={tag}
bind:this={titleEl}
class={classes} aria-label={label}
style="--parallax-x: {parallax}%;"
style--parallax-x="{parallax}%"
use:reveal={revealOptions}
>
<slot />