How I do I make controls/elements move with inertia?

后端 未结 5 1870
灰色年华
灰色年华 2021-01-31 12:21

Modern UI\'s are starting to give their UI elments nice inertia when moving. Tabs slide in, page transitions, even some listboxes and scroll elments have nice inertia to them (

5条回答
  •  执念已碎
    2021-01-31 13:13

    It's playing with the numbers.. What feels good is good.

    I've tried to develop magic formulas myself for years. In the end the ugly hack always felt best. Just make sure you somehow time your animations properly and don't rely on some kind of redraw/refresh rate. These tend to change based on the OS.

提交回复
热议问题