Skip to content

Commit 79827fe

Browse files
committed
fix: use key blocks for animation rendering section-based visibility
1 parent d688270 commit 79827fe

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/routes/+page.svelte

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
</div>
201201

202202
<div id="resume">
203-
{#if sections.resume}
203+
{#key sections.resume}
204204
<div class="title" in:blur={animationParams.section(0)}>
205205
<Header text="Resume" icon="clipboard" direction="right" />
206206
</div>
@@ -242,12 +242,12 @@
242242
Download Resume
243243
</a>
244244
</div>
245-
{/if}
245+
{/key}
246246
</div>
247247

248248

249249
<div id="projects">
250-
{#if sections.projects}
250+
{#key sections.projects}
251251
<div class="title" in:blur={animationParams.section(0)}>
252252
<Header text="Projects" icon="crane" direction="left" x={95} />
253253
</div>
@@ -277,31 +277,31 @@
277277
</ul>
278278
</a>
279279
</div>
280-
{/if}
280+
{/key}
281281
</div>
282282

283283
<div id="about">
284-
{#if sections.about}
284+
{#key sections.about}
285285
<div class="title" in:blur={animationParams.section(0)}>
286286
<Header text="About" icon="paper-airplane" direction="right" x={95} />
287287
</div>
288288
<div class="content">
289289
<ul>
290-
<li in:blur={animationParams.section(1)}>
290+
<li in:blur={animationParams.section(2)}>
291291
<a href="https://github.com/mattjmoran" target="_blank">Github</a>
292292
</li>
293-
<li in:blur={animationParams.section(2)}>
293+
<li in:blur={animationParams.section(3)}>
294294
<a href="https://www.linkedin.com/in/matt-j-moran/" target="_blank">LinkedIn</a>
295295
</li>
296-
<li in:blur={animationParams.section(3)}>
296+
<li in:blur={animationParams.section(4)}>
297297
<a href="mailto:[email protected]">Email</a>
298298
</li>
299299
</ul>
300-
<p in:blur={animationParams.section(4)}>
300+
<p in:blur={animationParams.section(1)}>
301301
Matthew Moran is a Software Engineer with a strong background in software development, data visualization, automation testing, and leading projects across various industries. He holds a Bachelor of Science in Computer Science and Art from the University of Wisconsin–Madison. With experience in both contract and full-time roles, Matthew focuses on building innovative solutions and refining digital tools to enhance efficiency and performance. Beyond development, he also applies his design expertise to create intuitive and visually compelling user experiences.
302302
</p>
303303
</div>
304-
{/if}
304+
{/key}
305305
</div>
306306

307307
<footer>

0 commit comments

Comments
 (0)