2022-07-05 13:41:43 +00:00
---
sidebar_label: ElementHandle.isIntersectingViewport
---
# ElementHandle.isIntersectingViewport() method
2023-04-11 14:05:10 +00:00
Resolves to true if the element is visible in the current viewport. If an element is an SVG, we check if the svg owner element is in the viewport instead. See https://crbug.com/963246.
2022-07-05 13:41:43 +00:00
2022-10-24 07:07:05 +00:00
#### Signature:
2022-07-05 13:41:43 +00:00
```typescript
class ElementHandle {
2022-07-06 07:05:37 +00:00
isIntersectingViewport(
this: ElementHandle< Element > ,
options?: {
threshold?: number;
}
): Promise< boolean > ;
2022-07-05 13:41:43 +00:00
}
```
## Parameters
2024-03-20 15:03:14 +00:00
< table > < thead > < tr > < th >
2022-07-05 13:41:43 +00:00
2024-03-20 15:03:14 +00:00
Parameter
< / th > < th >
Type
< / th > < th >
Description
< / th > < / tr > < / thead >
< tbody > < tr > < td >
this
< / td > < td >
[ElementHandle ](./puppeteer.elementhandle.md )< Element>
< / td > < td >
< / td > < / tr >
< tr > < td >
options
< / td > < td >
{ threshold?: number; }
< / td > < td >
_(Optional)_ Threshold for the intersection between 0 (no intersection) and 1 (full intersection). Defaults to 1.
< / td > < / tr >
< / tbody > < / table >
2022-07-05 13:41:43 +00:00
**Returns:**
Promise< boolean>