mkdocs-material icon indicating copy to clipboard operation
mkdocs-material copied to clipboard

navigation.expand animates expansion on first load

Open eleanor-arc-boats opened this issue 3 years ago • 4 comments

Context

No response

Bug description

I noticed that the left-side navigation will animate the expansion on first load - is this the intended behavior? Screen cap showing what I see. This is on Firefox v119 on Ubuntu. Using the latest mkdocs-material 9.4.7, disabled all customization.

Screencast from 10-30-2023 01:12:06 PM.webm

Related links

Reproduction

9.4.7-nav-expansion-animates-on-load.zip

Steps to reproduce

  1. Notice that on first load the table of contents / navigation animates the nested sections from collapsed to expanded

Browser

Firefox

Before submitting

eleanor-arc-boats avatar Oct 30 '23 20:10 eleanor-arc-boats

Thanks for reporting. Indeed, this is a change in behavior that was introduced because we added animations in 9.4.2. It should definitely not animate on the first load. To temporary mitigate, downgrade to 9.4.1, or disable navigation.expand.

squidfunk avatar Nov 02 '23 10:11 squidfunk

Thanks for investigating. As it turns out downgrading to 9.4.1 seems to break the pydownx emoji extension, so I'll wait until there's a fix.

eleanor-arc-boats avatar Nov 02 '23 16:11 eleanor-arc-boats

Fixed in dcc296e42.

squidfunk avatar Nov 19 '23 09:11 squidfunk

Released as part of 9.4.10.

squidfunk avatar Nov 19 '23 10:11 squidfunk