From 33515e5b565058890dbadf9c40dd5c2aeaa8972d Mon Sep 17 00:00:00 2001 From: Eric Y Liu Date: Mon, 5 Jul 2021 09:42:13 -0700 Subject: [PATCH] docs: fix formatted of intersectionObserverEntry interface --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index aeefc5a..b1ed068 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,17 @@ Try it in the [Svelte REPL](https://svelte.dev/repl/8cd2327a580c4f429c71f7df999b -## Install +## Installation + +**Yarn** ```bash yarn add -D svelte-intersection-observer -# OR +``` + +**NPM** + +```bash npm i -D svelte-intersection-observer ``` @@ -122,7 +128,8 @@ Note that all properties in `IntersectionObserverEntry` are read only.
IntersectionObserverEntry -```html + +```js interface IntersectionObserverEntry { target: HTMLElement; time: number; @@ -161,10 +168,10 @@ interface IntersectionObserverEntry { }; } ``` +
- ## Examples The [examples folder](examples/) contains sample set-ups.