Skip to content

Commit

Permalink
Updated FadeIn comment
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaeling committed Oct 29, 2023
1 parent 4434c34 commit 57a892b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/root/FadeIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import React, { useEffect, useState } from 'react';

// Wrapper component that takes in an input order to decide the amount of delay.
// Currently accepts up to 4 different delay levels but we'll see if we need more...
export default function FadeIn({
children,
order = 0,
Expand Down Expand Up @@ -36,6 +35,10 @@ export default function FadeIn({

useEffect(() => {
setAnimate('opacity-100 translate-y-0');

return () => {
setAnimate('');
};
}, []);

return (
Expand Down

0 comments on commit 57a892b

Please sign in to comment.