Live data from Hacker News

Scroll Slow. Have Fun

scrollslowhavefun.com

61–70 of 148 posts

Re: Scroll Slow. Have Fun

#62
post #5

This somehow manages my monitor to make a high pitched sound. It's an LCD monitor. It's the actual monitor making the sound. Switching to a different window or tab makes the sound top. Taking a screenshot of the tab, and closing the tab but viewing the screenshot, produces the sound.

"Some surface-mount capacitors exhibit acoustic noise when operated at frequencies in the audio range." [1] I see that this screen has alternating black and white lines. I count 43 black lines on my monitor. Assuming 60 Hz refresh rate, that is 2580 Hz in terms of the pixels being off or on, which is a perfectly audible frequency. Even with 120 Hz refresh rate, that would be 5160 which is still easily audible. Withou…

If so, you should be able to play some music on it.

Also makes for a nice covert channel... similar tricks with "listening" to the noises a computer makes have been shown to be possible to use for extracting information like encryption keys:

https://news.ycombinator.com/item?id=6927905

Re: Scroll Slow. Have Fun

#63

I am lazy and (apparently) suck at scrolling smoothly, dropping this in the console worked well :) setInterval(function() { window.scrollTo(0, document.body.scrollTop + 5) }, 60)

> and math

do this instead for 60 intervals per second: setInterval(function() { window.scrollTo(0, document.body.scrollTop + 5) }, 16.666666666666668)

or better yet skip the setInterval and have the page continue to move:

    var scrollIncrement = 5;
    var height = Math.max( document.body.scrollHeight, document.body.offsetHeight, document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight ) - window.innerHeight;
    var AnimationFrame = (function() {
        var FPS = 16.6666666667; // 1000 / 60 = Frames Per Second
        var RAF = window.requestAnimationFrame
                || window.webkitRequestAnimationFrame
                || window.mozRequestAnimationFrame
                || window.msRequestAnimationFrame
                || window.oRequestAnimationFrame
                || function(a) { window.setTimeout(a, FPS); }
        var CAF = window.cancelAnimationFrame
                || window.webkitCancelAnimationFrame
                || window.mozCancelAnimationFrame
                || window.msCancelAnimationFrame
                || window.oCancelAnimationFrame
                || function(a) { window.clearTimeout(a); }
        return {
            request: function(a) {
                RAF(a);
            },
            cancel: function(a) {
                CAF(a);
            }
        }
    })();


    var scroll = function(){
        var scrollPosition = Math.max( document.documentElement.scrollTop, document.body.scrollTop );
        if ( scrollPosition == height )
            scrollIncrement = (-1 * scrollIncrement);
        else if ( scrollPosition == 0 )
            scrollIncrement = (-1 * scrollIncrement);
        window.scrollBy(0, scrollIncrement);
        AnimationFrame.request(scroll);
    }

    AnimationFrame.request(scroll);

you can easily just tweak the scroll distance as well by entering scrollIncrement = x;

Re: Scroll Slow. Have Fun

#64
post #5

This somehow manages my monitor to make a high pitched sound. It's an LCD monitor. It's the actual monitor making the sound. Switching to a different window or tab makes the sound top. Taking a screenshot of the tab, and closing the tab but viewing the screenshot, produces the sound.

Does this work for for anybody on MBP or Retina displays? I tried mouse-wheel, trackpad and scroll bar, can't hear anything. anybody?

Nothing for me either with a rMBP

Re: Scroll Slow. Have Fun

#66

Am I doing something wrong? I don't see anything interesting. I see black lines and some art scrolling behind the lines. Is there some sort of illusion this is supposed to create?

I see, you have to use the scroll bar which goes one pixel at a time. This doesn't work for me if I use my scroll wheel on my mouse. It works if I grab the scroll bar and move downward.

For me the skull one just never worked right no matter how I tried scrolling. But the other ones work great.

Re: Scroll Slow. Have Fun

#67
post #27

To scroll super-slowly and smoothly on Windows, use the middle-click thing that spawns a little arrow-circle doodad. I'm pretty sure Linuces are inconsistent about implementing that feature, though.

That is correct. I just realized I do not have this feature on my Arch with Firefox in i3.

It's an option in Firefox, which (IIRC) is disabled by default everywhere except Windows. Look in Firefox's preferences; on the Advanced tab, it's the "Use autoscrolling" option.

Re: Scroll Slow. Have Fun

#70

We just produced a children book with this technology in Germany: http://www.amazon.de/Ulff-Backenh%C3%B6rnchen-eine-irre-Verf... Will be released in the next 4 weeks. It was fun to make, but also quite nightmarish in the technical details. It is a hell of work (we have roughly 30 animations in the book, very small and very big ones). It requires extremely accurate measurements for the grid-foil and a sophisticated w…

Isn't this how those "3D" panels work as well? It's the same thing printed, but with a plastic prism-esque thing on top showing different views from different angles.

Most 3D panels use an array of lenticular lenses to convert incident angle to position[1].

Note that the 3DS actually uses a parallax barrier, which is similar to this, but with the stripes far enough out-of-plane to the image to allow each eye to see a different part of the image[2].

The book my daughter has works just like this website, with black stripes on a transparent layer, and a layer immediatly below that is attached to the spine, but not the outer layer, causing it to move relative to the stripes as the page is turned[3].

1: http://en.wikipedia.org/wiki/Lenticular_printing

2: http://en.wikipedia.org/wiki/Parallax_barrier

3: No good wikipedia article, so here is their about page http://scanimationbooks.com/about-scanimation/

Post reply on HN