Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function ($) {
- "use strict";
- jQuery(document).ready(function($){
- $(".embed-responsive iframe").addClass("embed-responsive-item");
- $(".carousel-inner .item:first-child").addClass("active");
- $('[data-toggle="tooltip"]').tooltip();
- $(".header-area").sticky({topSpacing:0});
- //jQuery smooth scrool
- $('li.smooth-menu a').bind('click', function(event){
- var $anchor = $(this);
- var headerH = '65';
- $('html, body').stop().animate({
- scrollTop : $($anchor.attr('href')).offset().top - headerH + "px"
- }, 1200, 'easeInOutExpo');
- event.preventDefault();
- });
- //jQuery Scroll spy
- $('body').scrollspy({
- target: '.navbar-collapse',
- offset: 95
- });
- //Scrolly Parallax plugin
- $('.parallax-bg, .top-area-bg').scrolly({bgParallax: true});
- //Mobile menu
- $(".navbar-toggle").click(function(){
- $("body").addClass("mobile-menu-activated");
- });
- $("ul.nav.navbar-nav li a").click(function(){
- $(".navbar-collapse").removeClass("in");
- });
- });
- jQuery(window).load(function(){
- });
- }(jQuery));
- <!---- Parallax Effect Js --- Scrolly -->
- http://lab.victorcoulon.fr/javascript/scrolly/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement