Skip to content

Commit 6d47113

Browse files
committed
Beter iframe handling
1 parent 75fc529 commit 6d47113

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/features/interactions/scroll-driven-animations.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const slug = slugify(title);
3030
<p>In the following demo, if your browser has support for CSS scroll-driven animations, the images get unclipped as they cross the scrollport.</p>
3131

3232
<figure>
33-
<iframe src="https://scroll-driven-animations.style/demos/image-reveal/css/?embed" height="500" loading="lazy"></iframe>
33+
<iframe src="https://scroll-driven-animations.style/demos/image-reveal/css/?embed" height="500" loading="lazy" title="Scroll-driven animation demo"></iframe>
3434
<figcaption>Demo featuring <a href="https://scroll-driven-animations.style/demos/image-reveal/css/">self-revealing images</a> powered by scroll-driven animations.</figcaption>
3535
</figure>
3636

src/styles/global.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,9 @@
6969
padding-inline: var(--size-4);
7070
border-radius: var(--radius-3);
7171
}
72+
73+
figcaption {
74+
text-align: center;
75+
font-style: italic;
76+
}
7277
}

0 commit comments

Comments
 (0)