Skip to content

Commit

Permalink
add image animation
Browse files Browse the repository at this point in the history
  • Loading branch information
thejackshelton committed Jan 2, 2025
1 parent 219d657 commit 8ee572d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion apps/website/.astro/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/// <reference types="astro/client" />
/// <reference path="content.d.ts" />
10 changes: 9 additions & 1 deletion apps/website/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ import heroImage from "../assets/q-astro-hero.png";
<Background />
<div class="grid-line" aria-hidden="true"></div>
<div class="intro">
<Image class="hero-image" src={heroImage} alt="Qwik + Astro" />

<div class="overlay">
<Image class="hero-image" src={heroImage} alt="Qwik + Astro" />
</div>

<h1>
{
Expand Down Expand Up @@ -49,6 +52,11 @@ import heroImage from "../assets/q-astro-hero.png";
object-fit: cover;
height: 200px;
border-radius: 8px;
mask-image: radial-gradient(100% 100% at center, var(--off-black) 20%, transparent 100%);
-webkit-mask-image: radial-gradient(50% 100% at center, var(--off-black) 20%, transparent 100%);
animation: fade-in 0.75s forwards;
animation-delay: 2.25s;
opacity: 0;
}

h1 {
Expand Down

0 comments on commit 8ee572d

Please sign in to comment.