# LenisLike

interface in `@dioramajs/diorama/lenis`

```ts
import type { LenisLike } from '@dioramajs/diorama/lenis'
```

The part of Lenis 1.3 the adapter uses.

```ts
interface LenisLike
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `actualScroll` | `number` | Native scroll position, px. |
| `animatedScroll` | `number` | Smoothed scroll position, px. |
| `destroy` | `() => void` | Removes Lenis from the page. |
| `isHorizontal` | `boolean` | Whether Lenis scrolls horizontally. |
| `isScrolling` | `boolean \| 'native' \| 'smooth'` | Whether and how Lenis is scrolling. |
| `limit` | `number` | Maximum scroll, px. |
| `options` | `{ autoRaf?: boolean; readonly infinite?: boolean; readonly wrapper?: Window \| Element }` | Lenis options the adapter reads. |
| `raf` | `(time: number) => void` | Advances Lenis to `time`, ms. |
| `scrollTo` | `(...args: never[]) => void` | Scrolls to a target. |
| `time` | `number` | Lenis time, ms. The pump writes it to keep Lenis on the driver's clock. |
| `on` | `on(event: 'scroll' \| 'virtual-scroll', callback: () => void): () => void` | Listens to a Lenis event. Returns the unsubscribe function. |

Also exported from `@dioramajs/lenis`.

Defined in [packages/lenis/src/types.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/lenis/src/types.ts#L4).
