🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

astro-lenis

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

astro-lenis

A simple drop in lenis integration for Astro. Get smooth or die trying

unpublished
npmnpm
Version
2.4.0
Version published
Weekly downloads
45
-27.42%
Maintainers
1
Weekly downloads
 
Created
Source

astro-lenis

This is an Astro integration that adds simple and performant smooth-scrolling with Lenis.

Usage

Installation

Install the integration automatically using the Astro CLI:

npx astro add astro-lenis
pnpm astro add astro-lenis
yarn astro add astro-lenis

Or install it manually:

  • Install the required dependencies
npm install astro-lenis
pnpm add astro-lenis
yarn add astro-lenis
  • Add the integration to your astro.config.mjs
+import lenis from "astro-lenis";

export default defineConfig({
  integrations: [
+    lenis(),
  ],
});

Configuration

This package is meant to be a simple drop-in smooth-scroll solution using the default Lenis configuration. If you need a more complex solution visit the Lenis Github.

Licensing

MIT Licensed. Made with ❤️ by Matthew Justice.

Acknowledgements

@Bryceguy for helping me out so much with this in the discord
@Florian for making the template
@Houston because you're cute

Keywords

astro-integration

FAQs

Package last updated on 11 May 2024

Did you know?

Socket

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.

Install

Related posts