Small Bug Fixes

This commit is contained in:
IM23a-spirgif
2025-03-13 10:28:46 +01:00
parent 687ddedef1
commit 5779f2ca98
+3 -3
View File
@@ -1,13 +1,13 @@
"use client"; "use client";
import { useRef, useState, useEffect } from 'react'; import {useRef, useState, useEffect} from 'react';
const FadeInSection = ({ children }) => { const FadeInSection = ({children}) => {
const domRef = useRef(); const domRef = useRef();
const [hasBeenVisible, setHasBeenVisible] = useState(false); const [hasBeenVisible, setHasBeenVisible] = useState(false);
const [opacity, setOpacity] = useState(0); const [opacity, setOpacity] = useState(0);
useEffect(() => { useEffect(() => {
const thresholds = Array.from({ length: 101 }, (_, i) => i / 100); const thresholds = Array.from({length: 101}, (_, i) => i / 100);
const observer = new IntersectionObserver( const observer = new IntersectionObserver(
(entries) => { (entries) => {
entries.forEach((entry) => { entries.forEach((entry) => {