@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 653 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [ScrollVisibilityObserver](./x-components.scrollvisibilityobserver.md) > [observe](./x-components.scrollvisibilityobserver.observe.md)
## ScrollVisibilityObserver.observe() method
Starts observing the provided element.
**Signature:**
```typescript
observe(element: HTMLElement): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| element | HTMLElement | The element to observe if it has entered in the view. |
**Returns:**
void