Globe: Add opacity option, Part globe WIP

- Don't run the onScroll method on load, creates a funky translate otherwise
- Bind window innerHeight via Svelte
- Path scroll smoothing option value as prop
This commit is contained in:
2020-04-21 09:46:27 +02:00
parent c9ba6a9f29
commit 65c9822b73
6 changed files with 62 additions and 33 deletions

View File

@@ -80,7 +80,7 @@
{#if process.browser}
<Lazy offset={window.innerHeight}>
<InteractiveGlobe type="part" />
<InteractiveGlobe type="part" opacity="0.5" />
</Lazy>
{/if}

View File

@@ -120,11 +120,7 @@
{#if process.browser}
<Lazy offset={window.innerHeight}>
<InteractiveGlobe size={
(winWidth <= 768) ? 0.96 :
(winWidth <= 992) ? 0.6 :
0.575}
/>
<InteractiveGlobe />
</Lazy>
{/if}