Skip to content

Commit

Permalink
fix(transition): fix issue with transition on smaller devices
Browse files Browse the repository at this point in the history
Show animation when 30% of component is shown instead of 50%
  • Loading branch information
Aeonoi committed Oct 31, 2024
1 parent 448034c commit 08c1a86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/project-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const ProjectCard: React.FC<Props> = ({
{/* </motion.div> */}
</div>
<div className="p-8">
<p className="mt-2 text-sm text-catppuccin_teal font-semibold">
<p className="mt-2 text-md text-catppuccin_teal font-semibold">
{description}
</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/transition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Transition: React.FC<Props> = ({ children }) => {
whileInView={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.5, ease: "easeInOut", delay: 0.2 }}
viewport={{ once: false, amount: 0.5 }}
viewport={{ once: false, amount: 0.3 }}
className="pt-14"
>
{children}
Expand Down

0 comments on commit 08c1a86

Please sign in to comment.