Skip to content

Instantly share code, notes, and snippets.

View gonzalovazquez's full-sized avatar
💭
Focusing on GraphQL

Gonzalo Vazquez gonzalovazquez

💭
Focusing on GraphQL
View GitHub Profile
@gonzalovazquez
gonzalovazquez / scrollPlay.js
Last active March 11, 2016 06:28
A very nifty scroll to play script insipired by Vine.From http://jsbin.com/ocupor/1/edit
var video = document.getElementById('video'),
info = document.getElementById('info'),
fraction = 0.8;
function checkScroll() {
var x = video.offsetLeft,
y = video.offsetTop,
w = video.offsetWidth,
h = video.offsetHeight,
r = x + w, //right
$list: pouria josh mladen mason daniel
=author-image
@each $author in $list
.photo-#{$author}
background: image-url("avatars/#{$author}.png")
.author-bio
+author-image