Skip to content

Commit 0517ef9

Browse files
committed
Transition
1 parent 5227417 commit 0517ef9

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/layouts/Layout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const externalDomain = new URL(Astro.site || "").hostname;
2323
---
2424

2525
<!DOCTYPE html>
26-
<html lang="en" transition:name="root" transition:animate="initial">
26+
<html lang="en">
2727
<head>
2828
<BaseHead title={title} description={description} />
2929
<slot name="head" />

src/pages/speaker/[slug].astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ function getGitHosting(url: string): string | undefined {
9494
<div class="border-4 border-white rounded-lg shadow-lg inline-block mb-10">
9595
<Image
9696
transition:animate="fade"
97+
transition:name=`speaker-${entry.data.code}`
9798
src={entry.data.avatar}
9899
alt={entry.data.name}
99100
height={400}

src/pages/speakers.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const description = "Our conference speakers organized alphabetically";
8282

8383
<Image
8484
transition:animate="fade"
85+
transition:name=`speaker-${speaker.data.code}`
8586
src={speaker.data.avatar}
8687
alt={`${speaker.data.name}'s profile picture`}
8788
height={250}

0 commit comments

Comments
 (0)