• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Agency Pro Fade

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Agency Pro Fade

This topic is: resolved

Tagged: Agency Pro fade, javascript

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 10 months ago by wp guy.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 11, 2014 at 7:49 am #118183
    wp guy
    Member

    As you scroll down the top image fades out too fast. I would like to be able to scroll down and I guess "slow down" the fade if that's possible. Thank you.

    http://regattainnfollybeach.com
    August 14, 2014 at 10:39 pm #118898
    Tom
    Participant

    This effect is controlled by javascript code which you can edit to adjust the speed of fade for the Home-Top widget area.

    Use FTP to download and open the file \wp-content/themes/agency-pro/js/home.js to find this code:

    jQuery(function( $ ){
    
        $.localScroll({
        	duration: 900
        });
    
    	function fade_home_top() {
    		if ( $(window).width() > 800 ) {
            window_scroll = $(this).scrollTop();
    	   		$(".home-top").css({
    				  'opacity' : 1-(window_scroll/300)
    	    	});
    		}
    	}
    	$(window).scroll(function() { fade_home_top(); });
    
    });

    In the line 'opacity' : 1-(window_scroll/300) edit the last value from '300': higher values slow the speed of fade Try something around 600 to get started. Upload the edited file to your site and try different values as required.


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    August 15, 2014 at 7:24 am #118998
    wp guy
    Member

    That did the trick, thank you!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Agency Pro Fade’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble