Ng Elevator
Make a container to elevate on the screen while scrolling with Angular.
Table of Contents:
Installation
npm install @greg-md/greg-elevator --save
How It Works
Setting up in a module
;; // 1. Import elevator module;; ;
Using in templates
;
Component Attributes
marginTop
Elevator by default is fixed on the top of the screen while scrolling up. You could set a margin top for the elevator.
Example:
Hello! I am elevating.
marginBottom
If the elevator height is bigger than the screen height, elevator by default is fixed on the bottom of the screen while scrolling down. You could set a margin bottom for the elevator.
Example:
Hello! I am elevating.
License
MIT © Grigorii Duca