• 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

Menu opening speed (Genesis Sample Theme)

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 › Menu opening speed (Genesis Sample Theme)

This topic is: resolved

Tagged: Animation, menu, navigation, transform, transition

  • This topic has 2 replies, 2 voices, and was last updated 4 years, 4 months ago by Jummul.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 13, 2018 at 8:45 am #216509
    Jummul
    Member

    Hi y'all!

    I'm creating a new design, built off of the sample theme. Other than some css, haven't done much to the navigational menus yet.

    I noticed that the menu take some time to open, roughly quarter of a second. I want them to be instand, but there is some drop-down transition voodoo going on 🙂
    I've found two transitions in the css, see below. Removing these or changing the values doesn't seem to work. Can someone help me pinpoint it?

    (no url posted as this is developed in a password protected environment.. sorry)

    a,
    button,
    input:focus,
    input[type="button"],
    input[type="reset"],
    input[type="submit"],
    textarea:focus,
    .button,
    .gallery img {
    	-webkit-transition: all 0.1s ease-in-out;
    	-moz-transition:    all 0.1s ease-in-out;
    	-ms-transition:     all 0.1s ease-in-out;
    	-o-transition:      all 0.1s ease-in-out;
    	transition:         all 0.1s ease-in-out;
    }
    	.sub-menu-toggle::before {
    		display: inline-block;
    		text-rendering: auto;
    		-webkit-transform: rotate( 0 );
    		-ms-transform:     rotate( 0 );
    		transform:         rotate( 0 );
    		-webkit-transition: transform 0s ease-in-out;
    		-ms-transition:     transform 0s ease-in-out;
    		transition:         transform 0s ease-in-out; 
    	}
    
    	.sub-menu-toggle.activated::before {
    		-webkit-transform: rotate( 180deg );
    		-ms-transform:     rotate( 180deg );
    		transform:         rotate( 180deg );
    	}
    February 21, 2018 at 11:00 am #216871
    Victor Font
    Moderator

    The first block of CSS has nothing to do with the menu. The second is for the toggle on mobile devices.

    The menu speed isn't controlled by CSS, it's controlled by superfish. Superfish is a Javascript tool that is enabled when accessibility in enabled. Remove 'drop-down-menu' from the line in functions.php that enables accessibility.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    February 27, 2018 at 1:55 am #217046
    Jummul
    Member

    Thanks Victor, that was it!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Menu opening speed (Genesis Sample Theme)’ 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

© 2022 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