• 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

How to remove page animations without affecting CLS

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 › StudioPress Themes › Genesis Sample › How to remove page animations without affecting CLS

This topic is: not resolved

Tagged: Animation, CLS, google, transition

  • This topic has 1 reply, 2 voices, and was last updated 1 year, 8 months ago by LanceHillier.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 30, 2021 at 5:37 am #504358
    webkompaan
    Participant

    I have been puzzling to get my (modified) Genesis Sample theme to pass Googles CLS (through Lighthouse). It kept saying there was a large cls happening on the site-inner div. Finally I found that removing the css that I added to stop the fade-in fade-out loading of pages and content was causing this. I have no idea why this was affecting the cls.

    .site-container {
    animation: none;
    }

    But I don't like that animation/transition stuff in websites 😉 so any suggestion would be helpful how to remove it anyway.

    Thanks!

    Jack

    https://www.jacktummers.nl/
    September 15, 2021 at 1:27 am #504457
    LanceHillier
    Participant

    Hi Jack,

    I realise this post is a few months old but if you look for this code in the themes `style.css' file you can either delete or modify to something you like.

    /* Site Container
    --------------------------------------------- */
    
    .site-container {
    	animation: fadein .25s;
    	word-wrap: break-word;
    }
    
    @keyframes fadein {
    
    	from {
    		opacity: 0;
    	}
    
    	to {
    		opacity: 1;
    	}
    
    }

    This is taken from a theme I am working on so the values might be slightly different, I usually just delete the @keyframes fadein and set the animation: fadein .25s; to a value I like.

    Cheers,
    Lance.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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