mirror of
https://github.com/theoludwig/theoludwig.git
synced 2025-12-12 20:46:52 +01:00
build(deps): update latest
This commit is contained in:
@@ -8,13 +8,13 @@ export const RevealFade: React.FC<React.PropsWithChildren> = (props) => {
|
||||
useEffect(() => {
|
||||
const observer = new window.IntersectionObserver(
|
||||
(entries, observer) => {
|
||||
entries.forEach((entry) => {
|
||||
for (const entry of entries) {
|
||||
if (entry.isIntersecting) {
|
||||
entry.target.className =
|
||||
'opacity-100 visible translate-y-0 transition-all duration-700 ease-in-out'
|
||||
observer.unobserve(entry.target)
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
{
|
||||
root: null,
|
||||
|
||||
Reference in New Issue
Block a user