Socket
Book a DemoInstallSign in
Socket

vue-plugin-autoscroll

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

vue-plugin-autoscroll

A Vue component to automatically scroll (and optionally loop) containing elements.

unpublished
latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

vue-plugin-autoscroll

View Demo

Installation

npm install --save vue-plugin-autoscroll

Usage

Import the package and activate the plugin

import Vue from "vue"
import AutoScroll from "vue-plugin-autoscroll"

Vue.use(AutoScroll)

new Vue({
  el: "#app"
})

In your markup, make sure to wrap your entire page content

<div id="app">
  <auto-scroll :loop="true" :loop-up="false" :slow="false">
    <section>
      1
    </section>
    <section>
      2
    </section>
    <section>
      3
    </section>
  </auto-scroll>
</div>

Removing The Scrollbar

The following works for WebKit browsers

::-webkit-scrollbar { 
  display: none; 
}

Optional Props

PropTypeDefault
loopBooleantrue
loopUpBooleanfalse
slowBooleanfalse

License

MIT

Keywords

vue

FAQs

Package last updated on 15 Jan 2018

Did you know?

Socket

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.

Install

Related posts