1.2.4 • Published 4 years ago

ng9-scroll-top v1.2.4

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

'Scroll To Top' Library

ng9-scroll-top

ng9-scoll-top Library is made using Angular CLI 9.1.7

Demo (example)

Watch this demo page

Or play with it live on stackblitz.com/edit/ng9-scroll-top

Installation

ng add ng9-scroll-top

import  {  ScrollToTopModule  }  from  'ng9-scroll-top';
............................................................................

@NgModule({
imports:  [ ScrollToTopModule, ... ],
providers:  [... ],
bootstrap:  [AppComponent]
})
export  class  AppModule  {  }

Usage

Component way

In component.html you just need to add the selector of the button wherever needed.

Options

OPTIONTYPEDEFAULTDESCRIPTIONUNIT
backgroundColorstringpurpleBackground Color
colorstringwhiteColor
heightnumber50Heightpx
widthnumber50Widthpx
lineHeightnumber55Minimal height of line boxes within the elementpx
fontSizenumber30Font size of the icon/character given as textpx
borderRadiusstring20%Border Radius in % (0 : Square, 50% : circle)
rightnumber50Px value from the right-most borderpx
bottomnumber50Px value from the bottom-most borderpx
textstringWill be taken to display if no svgIcon link is specified
svgIconstringnullIcon link to be displayed
typestringpulseType of hovered button
breakpointsstring[]nullBreakpoints/ Fragment ID's to be navigated to

If no breakpoints are provided, then he scroll will be set to the top of the document.

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago