4 ms·
Jankyscroll – a JavaScript library that doesn't need to exist
- mangeletti 11y agoI think I'm already having heart palpitations.
- danboarder 11y agoThis reminds me of the "smooth scroll" scripts that muck up so many websites ... it made me laugh out loud!
- wavefunction 11y agoblame apple then and cry out loud as well
- nvartolomei 11y agoblame "designers" who wanted to emulate this behaviour
- minionslave 11y agoThat's actually a nice library, that could be use for april fools or something.
- dmak 11y agoI think this warrants a comment with a simple "LOL"
- vortico 11y agoOh, it's like my iPad when scrolling through PDFs.
- amsilprotag 11y agoFree Obfuscated Source Satire (FOSS) The JS from https://github.com/benzweig/jankyscroll https://github.com/benzweig/jankyscroll: <script>var jankyscroll=function(){"use strict";function n(){var n=Math.round(Math.random());return 1==n?-1:1}function o(){return(5Math.random()+8)/10}return function(r,t){function i(){a&&clearTimeout(a),a=setTimeout(function(){window.scrollBy(0,to()n())},400)}r=r||400,t=t||20;var e,a,c=function(){var i=Math.floor(window.scrollY/r);e!==i&&(window.scrollBy(0,to()*n()),e=i)};window.addEventListener("scroll",c,!1),window.addEventListener("resize",i,!1)}}();jankyscroll(170,100);</script>
- chncdcksn 11y agoSwitch to the master branch. :) it confused me too.
- kzhahou 11y agoCongratulations on the amazing adoption rate! I've seen this live on hundreds on sites the last few years.
- ossreality 11y agoI just don't understand who the fuck thinks it's a good idea to mess with scroll? Can you imagine? Someone sits down and decides it's a good idea and then puts in, god only knows, how much person-power to get it included. Christ.
- lwf 11y agoAmusingly, my usage of PgUp/PgDown was unaffected. I will live to scroll another day!
- LED_ 11y agodef file an issue, that's an unacceptable lack of jank
- rcthompson 11y agoYou can also defeat it by clicking and dragging the scroll bar. It will still jank, but since it can't move your mouse, the mouse will instantly drag the scroll bar right back to where it was before the jank triggered.
- Zarkonnen 11y agoAh, that's what the guardian has started using!
- namuol 11y agoI am installing this by default in all my client projects from now on to give them something amorphous to complain about but easy to fix.
- deleted 11y ago[deleted]
- InclinedPlane 11y agoIt's sad that this is actually more functional than the broken scrolling on many popular websites.
- tajen 11y agoI can see Jankyscroll is programmed in VanillaJS, which is another framework I highly recommend: http://vanilla-js.com http://vanilla-js.com
- deleted 11y ago[deleted]
- vilmosi 11y agoHilarious!!
- cheshire137 11y agoI've combined this with fartscroll.js and Pride and Prejudice to form a horrible reading experience: http://3till7.net/uploads/2015/08/pride-and-prejudice/ http://3till7.net/uploads/2015/08/pride-and-prejudice/