Skip to content

Instantly share code, notes, and snippets.

@numbnet
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save numbnet/7df330e3ddbb6b6fd919 to your computer and use it in GitHub Desktop.
Save numbnet/7df330e3ddbb6b6fd919 to your computer and use it in GitHub Desktop.
LEZGYw
<div id="container"></div>
<canvas id="canvas"></canvas>
<script src="http://code.jquery.com/jquery-1.8.2.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://bayguzin.ru/demo2014/risunok/js/marblue.js"></script>
$(function () {
var canvas = document.getElementById('canvas');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
});
body{
margin:0;
padding: 0;
}
#container {
position: absolute;
height: 100%;
width: 100%;
background:url('http://bayguzin.ru/demo2014/risunok/img/black.png') no-repeat center center fixed;
-webkit-background-size: 100%;
-moz-background-size: 100%;
-o-background-size: 100%;
background-size: 100%;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
z-index:1000;
}
#canvas{
opacity: 1;
position: fixed;
z-index: 100;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment