mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
c995a378f3
Because image scaling is slowest on big images, we cheat and start the image at half-size and placed accordingly. Because the animation is fast, you can't see the difference but it feels a lot zippier. The only trick is choosing the right animation function so that you don't see a change in percieved animation speed from frame #1 (the tab) to frame #2 (the half-size image) to frame #3 (the first frame of real animation). Choosing an animation that starts fast is key. |
||
---|---|---|
.. | ||
base/content/tabcandy | ||
themes/pinstripe/browser/tabcandy |