Skip to content

Commit

Permalink
put team deriv toggle intersection observer on the title of the secti…
Browse files Browse the repository at this point in the history
…on, lower threshold for firing
  • Loading branch information
pipercucu committed Jan 15, 2024
1 parent aacee51 commit 5711b54
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 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.5 }
{ threshold: 0.25 }
);

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

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

0 comments on commit 5711b54

Please sign in to comment.