Skip to content

Commit

Permalink
smooth transition
Browse files Browse the repository at this point in the history
  • Loading branch information
HassanChowdhry committed May 24, 2024
1 parent d202e7a commit 1728783
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function App() {
setTimeout(() => {
setLoading(false);
setFadeClass('animate__animated animate__fadeIn');
}, 750);
}, 650);
}, 2000);
return () => clearTimeout(toRef);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Hero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Hero = () => {
<section className='w-full h-screen m-auto flex-1 item-center'>
<div
className={`${styles.paddingX}
mx-auto flex flex-row items-start gap-5 mt-4`}>
mx-auto flex flex-row items-start gap-5 pt-4`}>

<div className='flex flex-col justify-center items-center mt-5'>
<div className='w-5 h-5 rounded-full bg-[#915eff]'/>
Expand Down
4 changes: 3 additions & 1 deletion src/components/Loader.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { SectionWrapper } from '../hoc';

const Loader = () => {
return (
<section className='w-full h-screen flex justify-center items-center'>
Expand All @@ -6,4 +8,4 @@ const Loader = () => {
)
}

export default Loader
export default SectionWrapper(Loader, "loader");

0 comments on commit 1728783

Please sign in to comment.