Skip to content

Instantly share code, notes, and snippets.

View heiets's full-sized avatar

Oleksandr Heiets heiets

  • Warsaw
View GitHub Profile
@heiets
heiets / par.js
Created December 10, 2015 13:12
par
$(window).scroll(function() {
var st = $(this).scrollTop() /10;
$(".parim").css({
"transform" : "translate3d(0px, " + st/8 + "%, .01px)",
"-webkit-transform" : "translate3d(0px, -" + st/8 + "%, .01px)"
});
});
@heiets
heiets / loaderjs.js
Created December 10, 2015 13:12
loaderjs
$(window).load(function() { // makes sure the whole site is loaded
$('.loader').fadeOut(); // will first fade out the loading animation
$('.loader_inner').delay(1000).fadeOut('slow'); // will fade out the white DIV that covers the website.
$('body').delay(1000).css({'overflow':'visible'});
})
@heiets
heiets / ie.html
Created December 10, 2015 12:12
ie
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->