Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ======= PORTFOLIO LOAD ======= */
- var toLoad;
- $('#works-list a').click(function(){
- $("html, body").scrollTo("#portfolio-categories", 1000, { offset: -height_menu } );
- toLoad = $(this).attr('href');
- $("#portfolio-loader").fadeIn(500);
- $.ajax({
- url: toLoad,
- success: function(data) {
- var content_ajax = jQuery(data).find('#portfolio-ajax').html();
- $("#portfolio-item").html(content_ajax);
- $("#portfolio-loader").slideUp(500, function() { $("#portfolio-item").slideDown(500); } );
- }
- });
- return false;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement