Opening/closing animation of element at load time are annoying

RESOLVED FIXED

Status

Mozilla Developer Network
Design
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: Jeremie, Unassigned)

Tracking

Details

(Reporter)

Description

4 years ago
There is a few element that auto collapse or auto open at load time:
- TOC on tablette mode (auto collapse)
- Quick links sub section (can auto open)

There is a nice animation when the user decide to open or collapse one of those elements. However, those animation are also played when the page s load and the element change state.

This very disturbing while you are reading the page before the load end and suddenly, the page is moving.

Would it be possible to avoid those animation at page load and have the elements immediately in their final state even before the page is fully loaded (technically speaking, could it be possible, at load time, to avoid using JavaScript to turn elements in their final state and relay on CSS without any transition).

As an example, take a look at this page: https://developer.mozilla.org/en-US/docs/Web/API/BluetoothManager
I'm going to experiment with this.  Not promising we'll make this move right away, but worth some time this morning.

Comment 2

4 years ago
Commits pushed to master at https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/8acecdee8355c16c0ec96e2af0e5661073d0f224
fix bug 940918 - Avoid flash of content in TOC, quick links

https://github.com/mozilla/kuma/commit/e4bd5e373473820ec6726f6cab911b32ab671993
Merge pull request #1678 from darkwing/avoid-foc-940918

fix bug 940918 - Avoid flash of content in TOC, quick links

Updated

4 years ago
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.