Commit 72a7674
committed
fix(homepage): clean up GSAP DOM classes on perspective toggle
useGSAP's ctx.revert() only cleans up GSAP-managed inline styles,
not imperative classList additions. Add cleanup function to remove
stale arrow-line/arrow-head 'active' and row 'row-match'/'row-dim'
classes when isDev changes, preventing visual glitches on toggle.1 parent 9b78010 commit 72a7674
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
245 | 253 | | |
246 | 254 | | |
247 | 255 | | |
| |||
0 commit comments