823a9df442
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
32 lines
791 B
Markdown
32 lines
791 B
Markdown
---
|
|
sidebar_label: ElementHandle.isIntersectingViewport
|
|
---
|
|
|
|
# ElementHandle.isIntersectingViewport() method
|
|
|
|
Resolves to true if the element is visible in the current viewport.
|
|
|
|
#### Signature:
|
|
|
|
```typescript
|
|
class ElementHandle {
|
|
isIntersectingViewport(
|
|
this: ElementHandle<Element>,
|
|
options?: {
|
|
threshold?: number;
|
|
}
|
|
): Promise<boolean>;
|
|
}
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --------- | ------------------------------------------------------------ | ------------ |
|
|
| this | [ElementHandle](./puppeteer.elementhandle.md)<Element> | |
|
|
| options | { threshold?: number; } | _(Optional)_ |
|
|
|
|
**Returns:**
|
|
|
|
Promise<boolean>
|