Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am docwatson on github.
* I am beauwatson (https://keybase.io/beauwatson) on keybase.
* I have a public key ASBPSCEJZodun4hpfpx8ij-xL2rwpNw9x7rCo5-Mb2C18Qo
To claim this, I am signing this object:
@DocWatson
DocWatson / gist:a950fe82b4c1fc275ca3
Created November 14, 2014 19:02
Transition <body> background-color on scroll
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script>
var sections = [];
function isScrolledIntoView(elem)
{
var docViewTop = $(window).scrollTop();
var docViewBottom = docViewTop + $(window).height();
var elemTop = $(elem).offset().top;
@DocWatson
DocWatson / index.html
Created May 13, 2014 01:19
HTML5 QuickStart Template
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<link rel="stylesheet" href="">
</head>
<body>