UNPKG

nuxt-lenis

Version:

This is a Nuxt wrapper for [Lenis](https://lenis.studiofreight.com/) (by [Studio Freight](https://studiofreight.com/)) – providing smooth scrolling with support for multiple instances in a type-safe and reactive way.

9 lines (8 loc) 402 B
import { useNuxtApp } from '#app'; export declare function useLenis(): { createLenis: (id: string, options?: import("lenis").LenisOptions) => useNuxtApp; getLenis: (id?: string) => useNuxtApp | null; destroyLenis: (id: string) => void; scrollState: (id?: string) => import("../plugin").ScrollState | null; watchScrollState: (callback: (state: any) => void, id?: string) => void; };