Skip to content

Commit becc895

Browse files
committed
Trim edge of image and fix spinner behavior.
1 parent c7b1246 commit becc895

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

src/lib/components/App.svelte

+9-20
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,16 @@
3333
<svelte:body on:mousemove={onmousemove} on:mousedown={onmousedown} />
3434

3535
<div>
36-
<Canvas>
37-
<Scene />
38-
</Canvas>
39-
{#if $effect}
40-
<Timeline />
41-
<EffectPane />
36+
{#if $model}
37+
<Canvas>
38+
<Scene />
39+
</Canvas>
40+
{#if $effect}
41+
<Timeline />
42+
<EffectPane />
43+
{/if}
4244
{:else}
43-
<div class="spinner-container">
44-
<div class="spinner-content">
45-
<Circle size="60" color="#FF3E00" unit="px" duration="1s" />
46-
</div>
47-
</div>
45+
<Circle size="32" color="#FFFFFF" unit="px" duration="1s" />
4846
{/if}
4947
</div>
5048

@@ -53,13 +51,4 @@
5351
height: 100%;
5452
width: auto;
5553
}
56-
.spinner-container {
57-
display: flex;
58-
justify-content: center;
59-
align-items: center;
60-
height: 100vh;
61-
}
62-
.spinner-content {
63-
text-align: center;
64-
}
6554
</style>

static/threejs-effects.png

8.67 KB
Loading

0 commit comments

Comments
 (0)