Commit 26aebbe
Improve animation for details element
The change makes use of the fact that animating to `height: auto` is
possible now. And by using the `details-content` pseudo-element the
collapsing is animated as well and not only the expansion.
Screencast: https://imgur.com/a/F9zfvxz
References:
https://developer.chrome.com/docs/css-ui/animate-to-height-auto
https://developer.chrome.com/blog/styling-details
Bug: none
Change-Id: Ibf01944e5ffffcd39a99e819693a49d9fe8ee20d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6110473
Commit-Queue: Wolfgang Beyer <[email protected]>
Reviewed-by: Alex Rudenko <[email protected]>1 parent 4853e98 commit 26aebbe
File tree
2 files changed
+12
-7
lines changed- front_end/panels/explain/components
2 files changed
+12
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | | - | |
| 590 | + | |
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
280 | | - | |
281 | 279 | | |
282 | | - | |
283 | 280 | | |
284 | 281 | | |
285 | 282 | | |
286 | | - | |
287 | | - | |
288 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
289 | 294 | | |
290 | 295 | | |
291 | 296 | | |
| |||
0 commit comments