We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ab3d2e commit 590b446Copy full SHA for 590b446
src/routes/landing/Slider.svelte
@@ -53,10 +53,8 @@
53
<img
54
src={image}
55
alt={title}
56
- class={[
57
- 'size-full object-cover translate-x-[calc(-1_*_var(--slide))] transform-gpu shrink-0 motion-safe:transition-transform motion-safe:duration-300',
58
- stopAnimation && 'motion-safe:transition-none motion-safe:duration-0'
59
- ]}
+ class="size-full object-cover translate-x-[calc(-1_*_var(--slide))] transform-gpu shrink-0 motion-safe:transition-transform motion-safe:duration-300"
+ class:stopAnimation
60
/>
61
{/each}
62
</div>
@@ -80,3 +78,9 @@
80
78
81
79
</ul>
82
+
+<style>
83
+ .stopAnimation {
84
+ transition: none !important;
85
+ }
86
+</style>
0 commit comments