use-scroll-to
A type safe React hook to handle scroll actions
Example of usage:
;; return ;
Example with options:
Options is an object with flowing props: behavior
, minus
and plus
.
behavior
have two options: auto
and smooth
, if this property has not been declared, it will be smooth
by default.
minus
and plus
: are the number of pixels that must be added or reduced when the scroll is performed on the element.
All these properties are optional
.
; ; ;