Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Share Buttons
- //----------------------------------------//
- $('.share-buttons').each(function() {
- var $Filter = $(this);
- var FilterTimeOut;
- $Filter.find('ul li:first').addClass('active');
- $Filter.find('ul li:not(.active)').hide();
- $Filter.hover(function(){
- clearTimeout(FilterTimeOut);
- if( $(window).width() < 959 )
- {
- return;
- }
- FilterTimeOut=setTimeout(function(){
- $Filter.find('ul li:not(.active)').stop(true, true).animate({width: 'show' }, 250, 'swing');
- $Filter.find('ul li:first-child a').addClass('share-hovered');
- }, 100);
- },function(){
- if( $(window).width() < 960 )
- {
- return;
- }
- clearTimeout(FilterTimeOut);
- FilterTimeOut=setTimeout(function(){
- $Filter.find('ul li:not(.active)').stop(true, true).animate({width: 'hide'}, 250, 'swing');
- $Filter.find('ul li:first-child a').removeClass('share-hovered');
- }, 250);
- });
- $(window).resize(function() {
- if( $(window).width() < 960 )
- {
- $Filter.find('ul li:not(.active)').show();
- }
- else
- {
- $Filter.find('ul li:not(.active)').hide();
- }
- });
- $(window).resize();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement