Commit 08a7c31
authored
chore: Use boxShadow for the glow in the Planets example and complete the code snippet (#9864)
## Summary
The Planets example built its `:active` glow from iOS-only
`shadowOpacity`/`shadowRadius` plus `elevation`, which renders as a
barely visible gray shadow on Android. The glow is now a single
cross-platform `boxShadow` transition (`` `0 0 0 0 ${color}00` `` -> ``
`0 0 18px 4px ${color}` ``), and the code snippet shows all animated
props (`:hover` name reveal, `:active` scale and glow) instead of only
the `:hover` opacity.
## Example recording
pressing a planet shows the planet-colored glow and 1.1x scale;
releasing fades the glow and keeps the name revealed (sticky touch
hover).
https://github.com/user-attachments/assets/310c71ba-29f0-4f28-8394-1b17d4af2ad41 parent da17437 commit 08a7c31
1 file changed
Lines changed: 30 additions & 11 deletions
Lines changed: 30 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
63 | 75 | | |
64 | 76 | | |
65 | 77 | | |
66 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
67 | 87 | | |
68 | 88 | | |
69 | 89 | | |
| |||
81 | 101 | | |
82 | 102 | | |
83 | 103 | | |
84 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
85 | 108 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 109 | | |
90 | 110 | | |
91 | 111 | | |
| |||
137 | 157 | | |
138 | 158 | | |
139 | 159 | | |
140 | | - | |
141 | 160 | | |
142 | 161 | | |
143 | 162 | | |
| |||
0 commit comments