Minimal Back To Top Button In Pure JavaScript

Minimal Back To Top Button In Pure JavaScript

Customizable plugin, smooth scroll up button, on native JavaScript Up button initialization, call _**`up()`**_ function, in your js file, or in html file, inside script tag The button has standard styles that are specified in the css file, but it can be customized for a specific design by passing parameters to the function.

up-button

Customizable plugin, smooth scroll up button, on native JavaScript

Description

Up button initialization, call up() function, in your js file, or in html file, inside script tag The button has standard styles that are specified in the css file, but it can be customized for a specific design by passing parameters to the function.

Initialization

 up();

Initialization with parameters

up({
   bottom: '20px',
   right: '20px',
   width: '45px',
   height: '45px',
   bg: 'green',
   src: 'img/chevron-up-solid.svg',
   whenShow: 400,
   circle: true
  })

Settings

top

Top position, written in quotes, example "20px"

bottom

Bottom position, written in quotes, example "5%"

left

Position to the left, written in quotes, example "2vw"

Right position, written in quotes, example "25px"

width

Button width, written in quotes, example "45px"

height

Button height, written in quotes, example "45px"

bg

background color of the button, written in quotes, example "# 000"

src

The address (URL) of the picture in the button, written in quotes, for example "img / picture.svg"

whenShow

How long does it take to scroll the page for the button to appear, example 400

circle

If the button should be round, example is true

Download Details:

Author: TheSanches

Source Code: https://github.com/TheSanches/up-button

javascript

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

The essential JavaScript concepts that you should understand

The essential JavaScript concepts that you should understand - For successful developing and to pass a work interview

Data Types In JavaScript

JavaScript data types are kept easy. While JavaScript data types are mostly similar to other programming languages; some of its data types can be unique. Here, we’ll outline the data types of JavaScript.

JavaScript Memory Management System

The main goal of this article is help to readers to understand that how memory management system performs in JavaScript. I will use a shorthand such as GC which means Garbage Collection. When the browsers use Javascript, they need any memory location to store objects, functions, and all other things. Let’s deep in dive that how things going to work in GC.

Create a Line Through Effect with JavaScript

In this post we are going to create an amazing line through effect, with help of CSS and lots of JavaScript. So, head over to your terminal and create a folder LineThroughEffect. Create three files -index.html, main.js and styles.css inside it.

Grokking Call(), Apply() and Bind() Methods in JavaScript

In this article, we will have a look at the call(), apply() and bind() methods of JavaScript. Basically these 3 methods are used to control the invocation of the function.