Small Bug Fixes
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
"use client";
|
||||
|
||||
import { useRef, useState, useEffect } from 'react';
|
||||
import {useRef, useState, useEffect} from 'react';
|
||||
|
||||
const FadeInSection = ({ children }) => {
|
||||
const FadeInSection = ({children}) => {
|
||||
const domRef = useRef();
|
||||
const [hasBeenVisible, setHasBeenVisible] = useState(false);
|
||||
const [opacity, setOpacity] = useState(0);
|
||||
useEffect(() => {
|
||||
const thresholds = Array.from({ length: 101 }, (_, i) => i / 100);
|
||||
const thresholds = Array.from({length: 101}, (_, i) => i / 100);
|
||||
const observer = new IntersectionObserver(
|
||||
(entries) => {
|
||||
entries.forEach((entry) => {
|
||||
|
||||
Reference in New Issue
Block a user