Skip to content

Instantly share code, notes, and snippets.

@ben1one
Last active October 1, 2016 10:31
Show Gist options
  • Save ben1one/131dbe179860e861c7270256c998eecb to your computer and use it in GitHub Desktop.
Save ben1one/131dbe179860e861c7270256c998eecb to your computer and use it in GitHub Desktop.
<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
<style type="text/css">
@media only screen and (max-device-width : 500px) {
.dialog{
position: absolute;
}
.dialog--open .dialog__overlay {
height: 10000px;
}
}
@media only screen and (min-device-width : 501px) and (max-device-width : 999px){
.dialog{
position: absolute;
}
.dialog--open .dialog__overlay {
height: 10000px;
}
}
@media only screen and (min-device-width : 1000px) {
}
</style>
<script type="text/javascript">
$('.action-btn').click(function(){
$("html, body").animate({ scrollTop: 0 }, 600);
return false;
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment