3 ms·
Hi! Glad you like the j/k scrolling. All it is is a call to `window.scrollTo()` with some logic to determine the position of the element we want to scroll to.
by divad12 12y ago
Hi! Glad you like the j/k scrolling.
All it is is a call to `window.scrollTo()` with some logic to determine the position of the element we want to scroll to. See [1] for the code of the actual function that does the scrolling. Is there acceleration? There doesn't seem to be on Chrome for Mac. :/
Oh, if you meant the little arrow ("»") that slides to the right on focus of a plugin, that's just the CSS 3 transition `all 0.1s ease-out` applied to a changing `left` and `opacity`. See [2] for code.
Thanks for checking out the site!
[1]: https://github.com/divad12/vim-awesome/blob/13d576664aa88fe09d8e6182eef5f3e95dd412ad/web/static/js/app.jsx#L76 https://github.com/divad12/vim-awesome/blob/13d576664aa88fe0...
[2]: https://github.com/divad12/vim-awesome/blob/13d576664aa88fe09d8e6182eef5f3e95dd412ad/web/static/sass/screen.scss#L1175 https://github.com/divad12/vim-awesome/blob/13d576664aa88fe0...