Skip to content

Commit

Permalink
observer en cardMobiel component
Browse files Browse the repository at this point in the history
  • Loading branch information
roykachani committed Nov 16, 2022
1 parent ee676c4 commit bd0922b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hook/useNearScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const useNearScreen = (distance = '100px', thrsH = 0, s) => {
if (entry.isIntersecting) {
setShow(true);
if (thrsH != 0) {
entry.target.classList.toggle(s, entry.isIntersecting);
entry.target.classList.add(s, entry.isIntersecting);
}
observer.unobserve(fromRef.current);
}
Expand Down

0 comments on commit bd0922b

Please sign in to comment.