nuxt3-aos

Animate on scroll library of Nuxt3
1,449 6
Install
npm install nuxt3-aos
Latest Version:1.0.19
Vue:3
License:MIT
Last Updated:Apr 10, 2024
Links: GitHub  ·  npm
Maintainer: linwu666

nuxt3-aos

npm version npm downloads License Nuxt

Basic Usage

1、Install

npm install --save-dev nuxt3-aos

2、Configuration

✅Add nuxt3-aos to the modules section of nuxt.config.ts

export default defineNuxtConfig({
	// ...
	modules: ["nuxt3-aos"],
	// ...
});

3、Basic Usage

Add v-aos to the element you want to animate

Add the animation class name you want to use

You can visit the official website of animate.css to select the animation class name you want to use

You can customize the execution time and delay time of the animation by adding the data-aos-delay and data-aos-duration properties

<div v-aos="['animate__fadeInUp']" data-aos-delay="0.5s" data-aos-duration="1s">An animated element</div>

The .once modifier allows element animation to be executed only once

<div v-aos.once="['animate__fadeInUp']" data-aos-delay="0.5s" data-aos-duration="1s">An animated element</div>

If you want to animate an element that is already in the viewport by default, you can add the animation class name without using a directive

*Don't forget the base class name animate__animated

<h1 class="animate__animated animate__bounce">An animated element</h1>

Related Packages

vue-wow

VUE浏览器可视窗口加载

22,378 37
nuxt-inline-scripts

Enable/Disable inlineScripts for Nuxt3

3,436 1
nuxt3-vuex-module

Vuex support for Nuxt 3

165,911 26
@nathanchase/nuxt-dayjs-module

This is a Nuxt 3 compatible module built with the official Nuxt 3 (module-builde...

19,376 31
@manusanchev/vue3-clickaway

Vue 3 directive to detect clickaway events

16,020

Version History

Version Released Vue License
1.0.19 ^3.0 MIT
1.0.18 ^3.0 MIT
1.0.17 ^3.0 MIT
1.0.16 ^3.0 MIT
1.0.15 ^3.0 MIT