From aaec6f02a14c864354770f173bb12e6411c14346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dalibor=20Jan=C3=A1k?= Date: Tue, 5 Jan 2016 13:00:09 +0100 Subject: [PATCH] Paralax removed --- index.html | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/index.html b/index.html index 902e11e..f03d9f2 100644 --- a/index.html +++ b/index.html @@ -373,28 +373,6 @@

About us

} - //parallax view - document.addEventListener('mousemove', function(event) { - var bodyWidth = document.body.clientWidth; - cx = Math.ceil(bodyWidth / 2.0); - cy = Math.ceil(bodyWidth / 2.0); - dx = event.pageX - cx; - dy = event.pageY - cy; - - tiltx = (dy / cy); - tilty = -(dx / cx); - radius = Math.sqrt(Math.pow(tiltx, 2) + Math.pow(tilty, 2)); - degree = (radius * 11); - - var paralax = document.getElementById('paralax'); - paralax.style.webkitTransform = 'rotate3d(' + tiltx + ', ' - + tilty + ', 0, ' + degree + 'deg)'; - var btnLearn = document.getElementById('btn-learnmore'); - btnLearn.style.webkitTransform = 'rotate3d(' + tiltx + ', ' - + tilty + ', 0, ' + degree + 'deg)'; - }); - - (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)