Gathering detailed insights and metrics for vue-animate-onscroll
Gathering detailed insights and metrics for vue-animate-onscroll
Gathering detailed insights and metrics for vue-animate-onscroll
Gathering detailed insights and metrics for vue-animate-onscroll
A simple component that animates elements as they scroll into view.
npm install vue-animate-onscroll
Typescript
Module System
Node Version
NPM Version
61.4
Supply Chain
80.3
Quality
75.6
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
115 Stars
58 Commits
19 Forks
3 Watchers
4 Branches
2 Contributors
Updated on Jun 13, 2025
Latest Version
1.0.8
Package Id
vue-animate-onscroll@1.0.8
Unpacked Size
5.99 kB
Size
2.30 kB
File Count
4
NPM Version
6.9.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
4
A simple Vue directive that animates elements as they scroll into view.
1npm install vue-animate-onscroll 2# or 3yarn add vue-animate-onscroll
Import to your Vue
application
1import Vue from 'vue' 2import VueAnimateOnScroll from 'vue-animate-onscroll' 3 4Vue.use(VueAnimateOnScroll)
For demo purposes, let's use animate.css, a css animation library but using your own custom CSS animations would work the same way as well.
Import animate.css
anyway you like. For demo purposes, in your index.html
1<head> 2 <!-- some other stuff --> 3 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.5.2/animate.min.css"> 4</head>
Pass the desired class as a string literal (in single quotes) in your Vue
template:
1<div v-animate-onscroll="'animated flip'">Animate me once upon scroll</div>
Note that by default the animation will only trigger once: the first time the element scrolled into view. If you want to repeat the animation everytime it was scrolled into view, use the repeat
modifier:
1<div v-animate-onscroll.repeat="'animated flip'">Animate me upon scroll forever</div>
It's also possible to animate only on a specific scroll direction by passing in an object as the value. In the following example, the animation will only trigger the first time you scroll down on the element.
1<div v-animate-onscroll="{down: 'animated flip'}">Animate me once upon scroll down</div>
On upward scroll:
1<div v-animate-onscroll="{up: 'animated rotateOut'}">Animate me once upon scroll up</div>
If you want to repeat the animation everytime you scroll down to the element add the repeat
modifier:
1<div v-animate-onscroll.repeat="{down: 'animated flip'}">Animate me everytime you scroll down on me</div>
Or use two different animations for each scroll direction:
1<div v-animate-onscroll="{down: 'animated flip', up: 'animated rotateOut' }">Animate me upon scroll forever</div>
Note that by providing both up
and down
directions, the repeat
modifier is implicitly in effect.
Live demo here.
vue-animate-onscroll by Joseph Harvey Angeles is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Based on a work at https://github.com/josephharveyangeles/vue-animate-onscroll.
No vulnerabilities found.
Reason
all changesets reviewed
Reason
no binaries found in the repo
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
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
31 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