/    Sign up×
Community /Pin to ProfileBookmark

Weird element rendering issue.

I have a weird transition rendering issue when a page loads. The header elements are zooming in rather than fading in. I’ve included a link to a video of it as I can only reproduce the issue using Safari and weirdly Microsoft Edge for macOS. it works as intended in Firefox, Chrome, and Opera (all macOS versions I don’t have access to a windows environment at the moment.). Does anyone have any idea why this is happening? I could keep the header `display: none;` but I like to go out of my way to not use workarounds. Link to a video of the issue the first window is the issue in safari the second is it working correctly in chrome.
[https://www.youtube.com/watch?v=M3J0ojNe9Ok]()

Link to code at codepen.
[https://codepen.io/k1n64r7hur/pen/MWvaGrP]()

P.S. Strange aside. the issue does not happen when rendering the page in safari at codepen.io. could this issue be due to me loading a local file?

to post a comment
CSSJavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@boohooOct 19.2021 — @Rikyli#1638339 it looks like it happens because the font loading somehow delays the processing of the CSS. And since you're using transition: all almost everywhere, this is what you get.
Copy linkTweet thisAlerts:
@RikyliauthorOct 20.2021 — @boohoo#1638345 Is there a way to apply two transitions to an element without wrapping it in divs? That was my reason for the transition: all usage. I'm trying to not use any wrapping containers unless it makes structural sense such as nav in the header (just a personal challenge, I may abandon it if I cant get the results I want.)
Copy linkTweet thisAlerts:
@boohooOct 20.2021 — @Rikyli#1638372 yes, you can have multiple transitions. You can pack them all in single transition:, or use transition-property:

  • 1. With transition:
    ``css<i>
    </i>transition: background-color 1s, color 1s;<i>
    </i>
    `</CODE></LI>
    <LI>2. With <C>
    transition-property</C>:
    <CODE lang="css">
    `css<i>
    </i>transition-property: background-color, color;
    transition-duration: 1s;<i>
    </i>
    ``
  • Copy linkTweet thisAlerts:
    @RikyliauthorOct 20.2021 — Okay, thanks a lot. I tried to do that before I started using "all" but I must have forgotten the comma or sem-colon because it didn't work then and does now 🤦‍♂️.
    ×

    Success!

    Help @Rikyli spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 4.25,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,

    tipper: @Samric24,
    tipped: article
    amount: 1000 SATS,
    )...