Skip to content

Commit

Permalink
style(animation): change direction PageTitle animation
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrvndr committed Oct 21, 2023
1 parent 90310fd commit 9de7406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/elements/PageTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import BreakLine from "./BreakLine";

export default function PageTitle({ title, description }: PageTitleProps) {
return (
<motion.div initial={{ opacity: 0, y: 50 }} animate={{ opacity: 1, y: 0 }}>
<motion.div initial={{ opacity: 0, y: -50 }} animate={{ opacity: 1, y: 0 }}>
<h1 className="primary text-xl font-bold md:text-2xl">{title}</h1>
<p className="secondary mt-2 leading-relaxed md:mb-14 md:text-lg lg:mb-0">
{description}
Expand Down

0 comments on commit 9de7406

Please sign in to comment.