Closed Bug 940918 Opened 11 years ago Closed 11 years ago

Opening/closing animation of element at load time are annoying

Categories

(developer.mozilla.org Graveyard :: Design, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Jeremie, Unassigned)

References

Details

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.
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
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.