This code is for detecting up and down scrolling (javascript)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
index.html
scroll.ts
style.css

README.md

Scroll detection made with javascript and works in Angular 2 which is detecting up/ down scrolling and doing hiding/showing of an element dependent of the direction of scrolling.

The example is done with 2 elements which needed to be shown and hidden.

[ngClass] is being used to set animation when classes replaced considering the hide and show of an element when scrolling

If you like this and you found useful you can contribute on my paypal kirilrap@aol.com

Cheers!