Commit fa60a81
committed
Fix tab switching: force animation restart on mode change
The mode-fade-in CSS animation wasn't replaying when toggling between
Charge Now and Book a Slot because the browser caches completed
animations. Fix: remove .active from both panels, force a reflow via
offsetWidth read, then add .active to the target panel.1 parent ab03f7a commit fa60a81
2 files changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1597 | 1597 | | |
1598 | 1598 | | |
1599 | 1599 | | |
1600 | | - | |
1601 | | - | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
1602 | 1608 | | |
1603 | 1609 | | |
1604 | 1610 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
775 | 775 | | |
776 | 776 | | |
777 | 777 | | |
778 | | - | |
779 | | - | |
780 | | - | |
| 778 | + | |
781 | 779 | | |
782 | 780 | | |
783 | 781 | | |
| |||
0 commit comments