Skip to content

Commit

Permalink
move intersection observer back on whole section and lower threshold …
Browse files Browse the repository at this point in the history
…to .1
  • Loading branch information
pipercucu committed Jan 15, 2024
1 parent 5711b54 commit 047d240
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/Team.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const Team = () => {
}
});
},
{ threshold: 0.25 }
{ threshold: 0.1 }
);

if (sectionRef.current) {
Expand All @@ -175,10 +175,8 @@ const Team = () => {

return (
<Section id="team">
<div className="team">
<h2 className="team-header" ref={sectionRef}>
our team
</h2>
<div className="team" ref={sectionRef}>
<h2 className="team-header">our team</h2>
<div className="team-members">
{members.map((member, index) => {
return (
Expand Down

0 comments on commit 047d240

Please sign in to comment.