
Security News
Node.js Homepage Adds Paid Support Link, Prompting Contributor Pushback
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
nuxt-lenis
Advanced tools
This is a Nuxt wrapper for [Lenis](https://lenis.studiofreight.com/) by [Studio Freight](https://studiofreight.com/). Thank them for the incredible tool.
This is a Nuxt wrapper for Lenis by Studio Freight. Thank them for the incredible tool.
Because of how Vue/Nuxt useState
works, we have to recreate the ScrollState
to a new object. We are porting over all fields we find necessary as you can also grab Lenis
for all methods and attributes.
yarn add nuxt-lenis
nuxt-lenis
to your modules in nuxt.configapp.vue
file, wrap the nuxt page in the lenis component
<lenis
:options="LenisOptions"
@initiated="foo"
@scroll="fooBar"
>
<NuxtPage />
</lenis>
<!-- You can pass in true or false into useLenis if you want to use more than one lenis instance. Defaults to single instance (true) -->
const {scrollState, lenis} = useLenis()
watch(scrollState, (val) => {
console.log("scrollState", val);
},{deep:true});
If you have multiple instances of Lenis you can get each one via an ID set ont he Lenis component
<lenis id="base" >
<NuxtPage />
</lenis>
<lenis id="modal" >
<NuxtPage />
</lenis>
<!-- script -->
const {scrollState, lenis} = useLenis(false)
scrollState.value.base
lenis.base
scrollState.value.modal
lenis.modal
FAQs
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.
The npm package nuxt-lenis receives a total of 440 weekly downloads. As such, nuxt-lenis popularity was classified as not popular.
We found that nuxt-lenis demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.
Research
Security News
The Socket Research Team investigates a malicious Python typosquat of a popular password library that forces Windows shutdowns when input is incorrect.