rigor789 / vue-scrollto

Adds a directive that listens for click events and scrolls to elements.
https://vue-scrollto.rigor789.com/
MIT License
2.07k stars 99 forks source link

scroll alignment #195

Open 719media opened 4 years ago

719media commented 4 years ago

Feature request:

It would be nice if there was a field to specify alignment within the scroll, similar to how scrollIntoView works (https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)

A polyfill also supports these options: https://github.com/magic-akari/seamless-scroll-polyfill

The reason is to scroll to an element, but have that element positioned start/center/end/nearest inside of the container.

RemiTiab commented 3 years ago

Yes i have the same problem .. Good feature 👍