
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
vue-smoothscroll
Advanced tools
it's a vuejs version of smoothscroll Based on https://github.com/alicelieutier/smoothScroll/blob/master/smoothscroll.js
# install dependencies
npm install vue-smoothscroll
then in the js file , you can use with router or others
var vueSmoothScroll = require('vue-smoothscroll');
Vue.use(vueSmoothScroll);
//define a tag
<div v-smoothscroll="{ duration : 500, callback: callback , context : undefined , axis :'y' }" class="message">
message
</div>
or
this.$SmoothScroll(target,duration,callback,context,axis);
params
target
is a HTMLElement Object
from your document that you want to scroll to, or a numeric position on the pageduration
is the total duration of the scroll (optional, defaults to 500ms)callback
is a function to be executed when the scrolling is over (optional)context
is the scrolling context (optional, defaults to window, can be any HTMLElement Object
)axis
is the x,y axis ,the value can be 'y' , 'x' , 'both', 'y' means horizontal direction, 'x' means vertical directionFAQs
it's a vuejs version of smoothscroll
The npm package vue-smoothscroll receives a total of 316 weekly downloads. As such, vue-smoothscroll popularity was classified as not popular.
We found that vue-smoothscroll 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
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.