navigation.expand animates expansion on first load
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
- Notice that on first load the table of contents / navigation animates the nested sections from collapsed to expanded
Browser
Firefox
Before submitting
- [X] I have read and followed the bug reporting guidelines.
- [X] I have attached links to the documentation, and possibly related issues and discussions.
- [X] I assure that I have removed all customizations before submitting this bug report.
- [X] I have attached a .zip file with a minimal reproduction.
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.
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.
Fixed in dcc296e42.
Released as part of 9.4.10.