0.0.1 • Published 1 year ago

nuxt-locomotive-scroll v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

thanks to starter-kit-nuxt-locomotive-scroll nuxt v2 by DidoMarchet

Nuxt Locomotive Scroll

A Nuxt module to easily integrate Locomotive Scroll into your Nuxt application.

npm version npm downloads License Nuxt

Features

  • 🚀  Easy to use
  • 🎨  Customizable

Quick Setup

Install the module to your Nuxt application with one command:

npx nuxi module add locomotive-scroll

That's it! You can now use Nuxt Locomotive Scroll in your Nuxt app ✨ or you can install it manually:

# npm
npm install nuxt-locomotive-scroll

# yarn
yarn add nuxt-locomotive-scroll

# pnpm
pnpm add nuxt-locomotive-scroll

and add nuxt-locomotive-scroll to the modules section of nuxt.config.

export default defineNuxtConfig({
  modules: [
    'nuxt-locomotive-scroll',
  ],
})

Usage

Just add v-locomotive directive to the element you want to animate.

<template>
  <div v-locomotive>
    <!-- Your content here -->
  </div>
</template>

you can check the playground for more examples.

Contribution

0.0.1

1 year ago