Closed zipper closed 5 months ago
As ScrollToExtension uses the element.scrollIntoView() method in the background, you can now pass options to the call by defining the data-naja-scroll-to-options attribute on the trigger element.
ScrollToExtension
element.scrollIntoView()
data-naja-scroll-to-options
As
ScrollToExtension
uses theelement.scrollIntoView()
method in the background, you can now pass options to the call by defining thedata-naja-scroll-to-options
attribute on the trigger element.