Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
vue-transition-on-scroll
Advanced tools
It is Vue.js plugin. When you scroll, you can give the transition effect to the internal objects
It is Vue.js plugin. When you scroll, you can give the transition effect to the internal objects. when the target object show up in viewport of wrapper(or window), transition effect start.
npm install vue-transition-on-scroll
yarn add vue-transition-on-scroll
<template>
<div class="section scroll-transition">
<div class="inner">
<div>
scroll down
</div>
<div id="scroll1">
<trans-on-scroll wrapper="scroll-transition" repeat>from default(top)</trans-on-scroll>
</div>
<div id="scroll2">
<trans-on-scroll wrapper="scroll-transition" repeat from="right">from right</trans-on-scroll>
</div>
<div id="scroll3">
<trans-on-scroll wrapper="scroll-transition" repeat from="left">from left</trans-on-scroll>
</div>
</div>
</div>
</template>
.scroll-transition {
height: 300px;
overflow: scroll;
font-size: 3em;
&::-webkit-scrollbar {
width: 8px;
}
&::-webkit-scrollbar-thumb {
background-color: rgba(31, 45, 61, 0.14);
outline: 1px solid rgba(31, 45, 61, 0.14);
border-radius: 4px;
}
.inner {
height: 1500px;
&>div {
height: 300px;
margin-bottom: 20px;
display: flex;
flex-direction: column;
justify-content: center;
}
}
#scroll1 {
background-color: #50C3F7;
}
#scroll2 {
background-color: #7986CB;
}
#scroll3 {
background-color: #AED581;
}
}
Property | Description | Type | Accepted Values | Default |
---|---|---|---|---|
from | transition direction from | String | top/right/left/bottom | top |
wrapper | it is scrollable box that is wrapping objects | String | only class name | window |
distance | distance of trasition | String | long/normal/short | normal |
repeat | whether repeat transiton effect | Boolean | - | false |
FAQs
It is Vue.js plugin. When you scroll, you can give the transition effect to the internal objects
The npm package vue-transition-on-scroll receives a total of 0 weekly downloads. As such, vue-transition-on-scroll popularity was classified as not popular.
We found that vue-transition-on-scroll demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.