Remove animations & fix navbar

This commit is contained in:
Edin Dazdarevic
2017-10-04 22:11:54 +02:00
parent e354412768
commit b84bae2ba3
4 changed files with 41 additions and 25 deletions

View File

@@ -79,22 +79,22 @@ $('a.back-to-top').click(function() {
//appear animedted...............
$('.animated').appear(function() {
var elem = $(this);
var animation = elem.data('animation');
if (!elem.hasClass('visible')) {
var animationDelay = elem.data('animation-delay');
if (animationDelay) {
// $('.animated').appear(function() {
// var elem = $(this);
// var animation = elem.data('animation');
// if (!elem.hasClass('visible')) {
// var animationDelay = elem.data('animation-delay');
// if (animationDelay) {
setTimeout(function() {
elem.addClass(animation + " visible");
}, animationDelay);
// setTimeout(function() {
// elem.addClass(animation + " visible");
// }, animationDelay);
} else {
elem.addClass(animation + " visible");
}
}
});
// } else {
// elem.addClass(animation + " visible");
// }
// }
// });
//end appear animedted...............
$(document).ready(function() {
@@ -167,9 +167,7 @@ $(window).on("scroll", function() {
$(document).ready(function() {
var fadeStart = 900;
var fadeUntil = 1300;
$(window).scroll(function() {
var offset = $(document).scrollTop();