Repository navigation
Commit 8b5da8b
committed
fix(iframe-pane): keep Motion's defaults for the values the opacity transition doesn't cover
Motion resolves a per-value transition as `transition[key] ?? transition.default ?? transition`,
so `width`, `height`, `scale` and `boxShadow` all resolved to the opacity-only object. That
counts as a defined transition, so they lost their defaults and fell back to a generic 300ms
`easeOut` tween: the scale spring became a tween and the four-keyframe reload pulse ran in 300ms
instead of 800ms. An empty `default` sends them back to Motion's per-value defaults.1 parent 154271f commit 8b5da8b
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
371 | 377 | | |
372 | 378 | | |
373 | 379 | | |
| |||
0 commit comments