Fix ScrollingTitle translate animation on scroll
Just missed a colon in the style variable declaration 🤦
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user