Difference between revisions of "Template:Freiburg/wiki content start"
Line 25: | Line 25: | ||
// use CSS transform to move button into view when user scrolls down | // use CSS transform to move button into view when user scrolls down | ||
if (y > 60 ) { | if (y > 60 ) { | ||
− | //console.log(' | + | //console.log('blob inside'); |
$blob.css({"display":"inline", "transform": "translateY(0)"}); // = 30 px inside right | $blob.css({"display":"inline", "transform": "translateY(0)"}); // = 30 px inside right | ||
} | } | ||
Line 31: | Line 31: | ||
// move blob out of view when page is scrolled up again | // move blob out of view when page is scrolled up again | ||
if (y < 60) { | if (y < 60) { | ||
− | + | console.log('blob outside'); | |
$blob.css({"transform": "translateY(130px)"}); // = 100 px outside | $blob.css({"transform": "translateY(130px)"}); // = 100 px outside | ||
} | } |
Revision as of 21:59, 10 September 2015