Fix ScrollingTitle translate animation on scroll

Just missed a colon in the style variable declaration 🤦
This commit is contained in:
2022-09-19 20:19:17 +02:00
parent 486213ac77
commit e0b28551b8

View File

@@ -38,7 +38,7 @@
parallax = isLarger ? map(scrollY, offsetStart, offsetEnd, 0, -toTranslate, true) : 0
}
$: classes = [
const classes = [
'scrolling-title',
'title-huge',
$$props.class
@@ -65,7 +65,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 />