Skip to content

Commit

Permalink
docs(nxdev): faster animation appearance (#7812)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcabanes authored Nov 19, 2021
1 parent 6efffb6 commit 3547e7d
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion nx-dev/ui-home/src/lib/affected-command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function AffectedCommand(): ReactComponentElement<any> {
},
};
const controls = useAnimation();
const [ref, inView] = useInView({ threshold: 0.5, triggerOnce: true });
const [ref, inView] = useInView({ triggerOnce: true });

useEffect(() => {
if (!inView) return;
Expand Down
2 changes: 1 addition & 1 deletion nx-dev/ui-home/src/lib/cloud-support.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function CloudSupport(): ReactComponentElement<any> {
},
};
const controls = useAnimation();
const [ref, inView] = useInView({ threshold: 0.5, triggerOnce: true });
const [ref, inView] = useInView({ triggerOnce: true });

useEffect(() => {
if (!inView) return;
Expand Down
2 changes: 1 addition & 1 deletion nx-dev/ui-home/src/lib/dependency-graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function DependencyGraph(): ReactComponentElement<any> {
},
};
const controls = useAnimation();
const [ref, inView] = useInView({ threshold: 0.5, triggerOnce: true });
const [ref, inView] = useInView({ triggerOnce: true });

useEffect(() => {
if (!inView) return;
Expand Down
2 changes: 1 addition & 1 deletion nx-dev/ui-home/src/lib/ecosystem-features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export function EcosystemFeatures(): ReactComponentElement<any> {
},
};
const controls = useAnimation();
const [ref, inView] = useInView({ threshold: 0.5, triggerOnce: true });
const [ref, inView] = useInView({ triggerOnce: true });

useEffect(() => {
if (!inView) return;
Expand Down
2 changes: 1 addition & 1 deletion nx-dev/ui-home/src/lib/egghead-courses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useInView } from 'react-intersection-observer';

export function EggheadCourses(): ReactComponentElement<any> {
const controls = useAnimation();
const [ref, inView] = useInView({ threshold: 0.5, triggerOnce: true });
const [ref, inView] = useInView({ triggerOnce: true });

useEffect(() => {
if (!inView) return;
Expand Down
2 changes: 1 addition & 1 deletion nx-dev/ui-home/src/lib/experience-features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export function ExperienceFeatures(): ReactComponentElement<any> {
},
};
const controls = useAnimation();
const [ref, inView] = useInView({ threshold: 0.5, triggerOnce: true });
const [ref, inView] = useInView({ triggerOnce: true });

useEffect(() => {
if (!inView) return;
Expand Down
2 changes: 1 addition & 1 deletion nx-dev/ui-home/src/lib/monorepo-features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export function MonorepoFeatures(): ReactComponentElement<any> {
},
};
const controls = useAnimation();
const [ref, inView] = useInView({ threshold: 0.5, triggerOnce: true });
const [ref, inView] = useInView({ triggerOnce: true });

useEffect(() => {
if (!inView) return;
Expand Down
2 changes: 1 addition & 1 deletion nx-dev/ui-home/src/lib/nx-playbook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useInView } from 'react-intersection-observer';

export function NxPlaybook(): ReactComponentElement<any> {
const controls = useAnimation();
const [ref, inView] = useInView({ threshold: 0.5, triggerOnce: true });
const [ref, inView] = useInView({ triggerOnce: true });

useEffect(() => {
if (!inView) return;
Expand Down
2 changes: 1 addition & 1 deletion nx-dev/ui-home/src/lib/open-platform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function OpenPlatform(): ReactComponentElement<any> {
},
};
const controls = useAnimation();
const [ref, inView] = useInView({ threshold: 0.5, triggerOnce: true });
const [ref, inView] = useInView({ triggerOnce: true });

useEffect(() => {
if (!inView) return;
Expand Down
2 changes: 1 addition & 1 deletion nx-dev/ui-home/src/lib/open-source-projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export function OpenSourceProjects(): ReactComponentElement<any> {
}),
};
const controls = useAnimation();
const [ref, inView] = useInView({ threshold: 0.5, triggerOnce: true });
const [ref, inView] = useInView({ triggerOnce: true });

useEffect(() => {
if (!inView) return;
Expand Down
2 changes: 1 addition & 1 deletion nx-dev/ui-home/src/lib/performance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function Performance(): ReactComponentElement<any> {
},
};
const controls = useAnimation();
const [ref, inView] = useInView({ threshold: 0.5, triggerOnce: true });
const [ref, inView] = useInView({ triggerOnce: true });

useEffect(() => {
if (!inView) return;
Expand Down
2 changes: 1 addition & 1 deletion nx-dev/ui-home/src/lib/vscode-plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function VscodePlugin(): ReactComponentElement<any> {
},
};
const controls = useAnimation();
const [ref, inView] = useInView({ threshold: 0.5, triggerOnce: true });
const [ref, inView] = useInView({ triggerOnce: true });

useEffect(() => {
if (!inView) return;
Expand Down
2 changes: 1 addition & 1 deletion nx-dev/ui-home/src/lib/youtube-channel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useInView } from 'react-intersection-observer';

export function YoutubeChannel(): ReactComponentElement<any> {
const controls = useAnimation();
const [ref, inView] = useInView({ threshold: 0.5, triggerOnce: true });
const [ref, inView] = useInView({ triggerOnce: true });

useEffect(() => {
if (!inView) return;
Expand Down

1 comment on commit 3547e7d

@vercel
Copy link

@vercel vercel bot commented on 3547e7d Nov 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.