Skip to content

Commit

Permalink
add scale to scroll animation and add to project cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Trombach committed Sep 19, 2024
1 parent 4414904 commit ec5d51d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/ProjectCard/ProjectCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const { href, title, description, cover, meta } = Astro.props;
<li
class:list={[
"group max-w-[600px] overflow-clip rounded-xl border bg-card text-card-foreground",
"timeline-slide-in-bottom [animation-range:entry_10%_contain_25%]"
]}
transition:name={`border-${dash(title)}`}
>
Expand Down
6 changes: 4 additions & 2 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@ module.exports = {
extend: {
keyframes: {
"slide-in-bottom": {
"0%": {
from: {
transform: "translateY(100px)",
scale: "0.8",
opacity: 0,
},
"100%": {
to: {
transform: "translateY(0)",
scale: "1",
opacity: 1,
},
},
Expand Down

0 comments on commit ec5d51d

Please sign in to comment.