Gathering detailed insights and metrics for nuxt-gsap
Gathering detailed insights and metrics for nuxt-gsap
Gathering detailed insights and metrics for nuxt-gsap
Gathering detailed insights and metrics for nuxt-gsap
npm install nuxt-gsap
Typescript
Module System
Node Version
NPM Version
JavaScript (82.9%)
Vue (17.1%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
16 Stars
14 Commits
2 Forks
2 Watchers
23 Branches
1 Contributors
Updated on Aug 15, 2022
Latest Version
0.1.4
Package Id
nuxt-gsap@0.1.4
Unpacked Size
7.07 kB
Size
2.98 kB
File Count
6
NPM Version
6.8.0
Node Version
12.4.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Easy GSAP (https://greensock.com/) integration with Nuxt.js
nuxt-gsap
dependency to your project1yarn add --dev nuxt-gsap # or npm install -dev nuxt-gsap
nuxt-gsap
to the buildModules
section of nuxt.config.js
1{ 2 buildModules: [ 3 'nuxt-gsap', 4 ] 5}
nuxt-gsap
dependency to your project1yarn add nuxt-gsap # or npm install nuxt-gsap
nuxt-gsap
to the modules
section of nuxt.config.js
1{ 2 modules: [ 3 'nuxt-gsap' 4 ] 5}
You can pass different options using module inline options:
1 buildModules: [ 2 'nuxt-gsap', [ 3 { 4 imports: ['Back', 'Circ'] // Specify the gsap modules you want to import. By default, gsap & Linear are loaded 5 } 6 ] 7 ]
or nuxtGsap section in nuxt.config.js
1 buildModules: [ 2 'nuxt-gsap' 3 ], 4 nuxtGsap: { 5 imports: ['Back', 'Circ'] // Specify the gsap modules you want to import. By default, gsap & Linear are loaded 6 }
This module globally injects $gsap instance, meaning that you can access it anywhere using this.$gsap. For plugins, asyncData, fetch, nuxtServerInit and Middleware, you can access it from context.$gsap
index.vue
1<template> 2 <h1 ref="test" class="test"> 3 Works! 4 </h1> 5</template> 6 7<script> 8export default { 9 mounted () { 10 this.$nextTick(() => { // When using $refs, must wait for nextTick 11 const tl = this.$gsap.timeline({ repeat: -1, ease: this.$gsap.Linear.easeInOut(2) }) 12 tl.to('.test', 2, { x: 200 }) // With css selector 13 tl.to(this.$refs.test, 0.5, { x: 0 }) // With refs 14 }) 15 } 16} 17</script> 18<style lang="scss" scoped> 19 .test { 20 color: red; 21 display: inline-block; 22 } 23</style>
yarn install
or npm install
npm run dev
Copyright (c) pirony romainpouchol@gmail.com
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/14 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
93 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More