Skip to content

Instantly share code, notes, and snippets.

Created December 13, 2015 07:13
Show Gist options
  • Save anonymous/c56d04b752aa09cc1108 to your computer and use it in GitHub Desktop.
Save anonymous/c56d04b752aa09cc1108 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/veloxez
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
#coverpic{
height:610px;
width:100%;
}
#arrowdown{
position: relative;
bottom: 230px;
left: 560px;
height:200px;
width: 200px;
}
</style>
</head>
<body>
<div id="coverpic">
<img id="coverpic" src="http://elpuente.us/sites/default/files/images/uploaded/SS_Connex-037_1.jpg" alt="OH NO">
<img id="arrowdown" src="http://www.iconsdb.com/icons/preview/moth-green/arrow-204-xxl.png" alt="">
</div>
<script id="jsbin-javascript">
$(arrowdown).click(function () {
$('html,body').animate({
scrollTop: $(document).height()/2,
}, 1000);
});
</script>
<script id="jsbin-source-css" type="text/css">#coverpic{
height:610px;
width:100%;
}
#arrowdown{
position: relative;
bottom: 230px;
left: 560px;
height:200px;
width: 200px;
}</script>
<script id="jsbin-source-javascript" type="text/javascript">$(arrowdown).click(function () {
$('html,body').animate({
scrollTop: $(document).height()/2,
}, 1000);
});</script></body>
</html>
#coverpic{
height:610px;
width:100%;
}
#arrowdown{
position: relative;
bottom: 230px;
left: 560px;
height:200px;
width: 200px;
}
$(arrowdown).click(function () {
$('html,body').animate({
scrollTop: $(document).height()/2,
}, 1000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment