This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Scroll to object | |
$("#arrow-down").on('click', function(e) { | |
$('html, body').animate({ | |
scrollTop: $("#descr-section").offset().top | |
}, 1000); | |
e.preventDefault(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).scroll(function () { | |
if ($(this).scrollTop() > 150) { | |
$('.scroll-top').fadeIn(400); | |
} | |
else { | |
$('.scroll-top').fadeOut(400); | |
} | |
}); | |
$('.scroll-top').click(function () { | |
$('body, html').animate({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sticky header | |
$(window).scroll(function() { | |
if ( $(this).scrollTop() > 0 ) { | |
$('.top-block').addClass('fixed'); | |
} else if( $(this).scrollTop() == 0 ) { | |
$('.top-block').removeClass('fixed'); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $overlay = $('.overlay'); | |
var $lightbox = $('.lightbox'); | |
$('#elementId').click(function(event) { | |
$overlay.fadeIn(300); | |
$lightbox.fadeIn(300); | |
event.preventDefault(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.overlay | |
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.7) | |
display: none | |
height: 100% | |
left: 0 | |
position: fixed | |
text-align: center | |
top: 0 | |
width: 100% | |
z-index: 10000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).on('load', function() { | |
$(".loader_inner").fadeOut(300); | |
$(".loader").fadeOut(300); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.loader | |
background: none repeat scroll 0 0 #ffffff | |
bottom: 0 | |
height: 100% | |
left: 0 | |
position: fixed | |
right: 0 | |
top: 0 | |
width: 100% | |
z-index: 9999 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button class="toggle-mnu"> | |
<span class="sandwich"> | |
<span class="sw-topper"></span> | |
<span class="sw-bottom"></span> | |
<span class="sw-footer"></span> | |
</span> | |
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.toggle-mnu | |
width: 60px | |
height: 50px | |
position: absolute | |
z-index: 100 | |
border: none | |
right: 20px | |
top: 9px | |
background-color: #1b1464 | |
display: none |
OlderNewer