Я пытаюсь поставить этот http://codepen.io/digitalcraft/pen/yydpbB на моем сайте, но я не могу понять, как это сделать. Я попытался скопировать все html, css и java, но не работает, тогда я попытался скопировать основные части html, без <h4>DC YOLO BOX v1</h4>
и скопировать css, скопировав скобки, но нечего делать, почему?Не удается скопировать ручку
$(document).mousemove(rotateScene);
function rotateScene(e) {
\t var horizontal = e.pageX/$(document).width();
\t var vertical = e.pageY/$(document).height(); \t
\t $('.panel').css({
\t \t '-webkit-transform': 'rotateX(' + (10 - (vertical * 17)) + 'deg) rotateY(' + (-20 + (horizontal * 40)) + 'deg)'
\t });
}
html{
\t height:100%;
\t min-height: 100%;
overflow:hidden;
}
body{font: 14px/21px Monaco, sans-serif;
color: #999;
font-smoothing: antialiased;
text-size-adjust: 100%;
height:100%;
min-height: 100%;
}
$color: cyan;
$spectrum: 15%;
$duration: 8s;
.scene {
width: 100%;
height: 100%;
perspective: 600;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
align-items: center;
justify-content: center;}
.panel {
width: 320px;
height: 240px;
background: #c5c5c5;
box-shadow: 0 20px 30px -10px rgba(0,0,0,0.3);
/*Start hardware acceleration*/
transform: translate3d(0, 0, 0);
transform-style: preserve-3d;
backface-visibility: hidden;
animation: colorfader $duration ease-in-out infinite;}
h1 {
font-family: "Lato",sans-serif;
font-size:60px;
font-weight:300;
color:rgba(255,255,255,0.6);
text-align:center;
margin-top:33%;
}
<div class="scene">
<div class="panel"><h1>YOLO</h1></div>
</div>