Skip to content

Commit 50aea2c

Browse files
committed
refactor(sponsorship): remove unused isInView logic
1 parent 08e1e8e commit 50aea2c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/views/sponsorship/Sponsorship.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import "@egjs/react-flicking/dist/flicking.css";
2323
import Button from "@components/UI/Button";
2424
import { gaEventTracker } from "@components/analytics/Analytics";
2525
import { useDocumentTitleUpdater } from "@hooks/useDocumentTitleUpdate";
26-
import { AnimatePresence, motion, useInView } from "framer-motion";
26+
import { AnimatePresence, motion } from "framer-motion";
2727

2828
const StyledWaveContainer = styled.div`
2929
background: ${Color.DARK_BLUE};
@@ -100,7 +100,6 @@ const Sponsorship: FC<React.PropsWithChildren<unknown>> = () => {
100100
new AutoPlay({ duration: 2000, direction: "NEXT", stopOnHover: false }),
101101
];
102102
const sectionRef = useRef(null);
103-
const isInView = useInView(sectionRef, { once: true, amount: 0.3 });
104103
const listVariants = {
105104
hidden: { opacity: 0 },
106105
visible: {
@@ -268,7 +267,7 @@ const Sponsorship: FC<React.PropsWithChildren<unknown>> = () => {
268267
<motion.div
269268
ref={sectionRef}
270269
initial={{ opacity: 0, y: 50 }}
271-
animate={isInView ? { opacity: 1, y: 0 } : { opacity: 0, y: 50 }}
270+
animate={{ opacity: 1, y: 0 }}
272271
transition={{ duration: 0.5, ease: "easeOut" }}
273272
>
274273
<StyledSponsorshipText>

0 commit comments

Comments
 (0)