arcomage-hd
arcomage-hd copied to clipboard
Transform and GPU-accelerated card animation option
- [x] Cleanup old Tailwind
transformclass - [x] Use
translateZ(0)(see also Tailwind'stransform-gpu) for all element with CSS transform - [x] Use
translateYfor tower & wall body instead of height - Add an option to switch to GPU-accelerated card animation
- [ ] Add the option
- [ ] Use
translateXtranslateYinstead oftopleftfor card position. This needs manual calculation for some in-card elements that already usetranslateXto implement flip effect, and can cause slightly blurry text - [ ] Use
translateZ(0) - [ ] Modify https://github.com/arcomage/arcomage-hd/blob/main/troubleshooting.md and #66, "Solution 2" in #66 is probably not needed. Also ask users with performance issue to test on https://webkit.org/blog-files/3d-transforms/poster-circle.html