Skip to content

Commit ea53165

Browse files
Merge pull request #54 from WebDevSimplified/fix-typo-intersection-observer
Fix Typo
2 parents 26dae34 + 92ca82b commit ea53165

File tree

1 file changed

+1
-1
lines changed
  • src/pages/2022-01/intersection-observer

1 file changed

+1
-1
lines changed

src/pages/2022-01/intersection-observer/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ observer.observe(document.getElementById("test"))
107107

108108
<IntersectionObserverComponent rootMargin={-50} />
109109

110-
As you can see from the blue lines our new viewport is 50px smaller. This type of rootMargin is perfect for doing things like loading animations that you want to occur after an element is at least a certain distance from the edge of the screen.
110+
As you can see from the red lines our new viewport is 50px smaller. This type of rootMargin is perfect for doing things like loading animations that you want to occur after an element is at least a certain distance from the edge of the screen.
111111

112112
### Root
113113

0 commit comments

Comments
 (0)