-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/SLB-405-Fade-effect' into dev
- Loading branch information
Showing
10 changed files
with
277 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
'use client'; | ||
import { motion, useReducedMotion } from 'framer-motion'; | ||
import React, { PropsWithChildren } from 'react'; | ||
|
||
export function FadeUp({ | ||
yGap, | ||
children, | ||
className, | ||
}: PropsWithChildren<{ yGap: number; className?: string }>) { | ||
const reducedMotion = useReducedMotion(); | ||
return ( | ||
<motion.div | ||
className={className} | ||
transition={{ duration: 0.8 }} | ||
initial={{ opacity: reducedMotion ? 1 : 0, y: reducedMotion ? 0 : yGap }} | ||
whileInView={{ opacity: 1, y: 0 }} | ||
> | ||
{children} | ||
</motion.div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
packages/ui/src/components/Organisms/PageContent/BlockHorizontalSeparator.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import React from 'react'; | ||
|
||
import { FadeUp } from '../../Molecules/FadeUp'; | ||
|
||
export function BlockHorizontalSeparator() { | ||
return ( | ||
<div className="container-page my-8"> | ||
<div className="container-content"> | ||
<hr className="container-text text-gray-200" /> | ||
<FadeUp yGap={50}> | ||
<div className="container-page my-8"> | ||
<div className="container-content"> | ||
<hr className="container-text my-8 text-gray-200" /> | ||
</div> | ||
</div> | ||
</div> | ||
</FadeUp> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.