(function ($) {
    
    $.localScroll({
        onAfter: function(target, settings) {
            var el = $(target).parent();
            if (el.is('li')) {
                el.animate({
                    backgroundColor: '#ffd'
                }, 300, function() {
                    el.animate({
                        backgroundColor: '#fff'
                    }, 1000);
                });            
            }
        },
        offset: -100,
        duration: 600
    });
    
// END
}) ($);



