Click To Scroll Component using The Modern Browser API | VueNextLevelScroll

VueNextLevelScroll is a click-to-scroll component using the modern browser API.

javascript scroll to element by id, scrollintoview offset, scrollintoview javascript, javascript smooth scroll to element, react scroll to element

Features

  • Just one tiny file
  • Component-based (great for async loading and code splitting)
  • Supports navigation through VueRouter
  • Universal code/SSR-safe
  • Well-tested and documented
  • Compatible with Node 8.0+
  • Vue as the only dependency
  • Highly customizable

How to make use of it:

Install

$ npm install vue-next-level-scroll

Usage

import VueNextLevelScroll from 'vue-next-level-scroll'


export default {
  components: {
    VueNextLevelScroll
  }
}
export default {
  components: {
    VueNextLevelScroll: () => import('vue-next-level-scroll')
  }
}

Prop overview

PropOptional?Comment
targetCan be any query selector you want (or a function that returns such). Will be passed to the scroll function
tagDefaults to div. The HTML tag used for the VueNextLevelScroll component
scrollFunctionYou can define an own scroll function that will take the target prop as parameter and can do whatever you like.
shouldNavigateIf set, VueRouter will reflect navigation changes in the url(top: no hash, target: hash)
navigationTypeDefaults to push. The navigation type of that VueRouter should use. Usually either push or replace

click to scroll component library, VueNextLevelScroll Plugin/Github


See Demo And Download

Official Website(Developmint): Click Here

This superior jQuery/javascript plugin is developed by Developmint. For extra advanced usage, please go to the official website.

Related Posts

Star-Rating-System

Create A Simple Star Rating System Using JavaScript

Star Rating System is a small JavaScript library to create a customizable star rating control and gradually improves it from a regular checkbox with numeric values. Star…

File-upload-with-preview

A Simple File Upload That Shows A Preview of the Uploaded Image

File upload with preview aims to address the issue of showing a preview of the uploaded user photo in an easy-to-use package. This is a simple front-end…

Animated-Sliding-Active-Menu

Animated Sliding Active Menu Item Indicator In jQuery | Navigation Menu

Animated Active Menu Indicator – A recent scrolling navigation cursor that moves when you hover over or activate a menu item. Written in jQuery and CSS/CSS3. Must…

iTooltip

[iTooltip] Replace the Original Advanced Tooltip Library

The JavaScript library lets you convert native tooltips into customizable overlays. iTooltip is a pure JS to replace the native tooltip that creates a custom pop-up hint…

Use-Online-Ping

How To Use Online Ping In Vanilla JavaScript Ping.js

Ping.js is a small and simple javascript library for ping response times for servers in pure javascript. Ping.js is a vanilla JavaScript library to supply a web-based…

jquery-fancy-file-uploader

Convert An HTML File Input Type Into a Fancy File Uploader

jQuery Fancy File Uploader is a jQuery extension for converting an HTML file input type into a portable fancy file uploader. Choose from an MIT or LGPL…