Progress zync

This commit is contained in:
BOTAlex 2024-01-12 07:55:16 +01:00
parent b3a1bd2034
commit b8051fb86e
3 changed files with 8 additions and 1 deletions

View File

@ -3,7 +3,8 @@
import { Parallax, ParallaxLayer, StickyLayer } from 'svelte-parallax';
import { onMount } from "svelte";
import ZSpacer from './lib/Universal/ZSpacer.svelte';
import planeImg from './images/PlaneGrid.png';
import planeImg from './assets/images/PlaneGrid.png';
import imgBackground from './assets/images/CubeSideTransparent.png';
window.onload = function() {
//window.scrollTo(0, 100);
@ -41,6 +42,12 @@
>
<ParallaxLayer rate={0} span={10} style="background: url('{planeImg}'); filter: brightness(10%);" />
<ParallaxLayer rate={1} span={2}>
<div style="background: url('{imgBackground}'); filter: brightness(100%); z-index: 1; height: 10%;">
</div>
</ParallaxLayer>
<StickyLayer offset={{ top: 0, bottom: 10 }} style="z-index: 1000;">
<div>
{scrollPos}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 250 KiB

After

Width:  |  Height:  |  Size: 250 KiB