Skip to content

Instantly share code, notes, and snippets.

@cers
cers / zscroll.html
Created March 22, 2012 19:05
Scrolling along the Z-Axis
<html>
<head>
<title>Scrolling along the Z-Axis</title>
<!--
Example from http://eng.wealtfront.com
Assumes browser window is sized at a height of 400px (the size of the black box).
-->
<style>
body{height:600px;}
#viewport {
function Post(){};
Post.prototype = {test : function test() console.log};
p = new Post();
p.test()("foobar"); // foobar
Post.prototype = {test : function test(a) {console.log(a)}};
p = new Post();
p.test("foobar"); // foobar