desandro/practical-ui-physics
关于
Learn basic physics for UI
学习与教育实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Practical UI physics
Demos for my talk Practical UI physics.
Adding physics-based motion to UI can make digital interactions feel natural, comfortable, and delightful. So why is it so hard to get right, especially on the web? While mobile device SDK's have physics-based libraries built-in, web developers are missing a straight-forward way to add physics to their sites. This talk aims to solve that. Physics is a huge subject, and physics programming is often intimidating. But for UI developers, we need only to take advantage of its core principles in a practical model. This talk will cover the fundamentals of physics programming, how to develop your own physics model in JavaScript, and how to use that model to make UI feel natural.
Demos also available on CodePen — Practial UI physics collection
- basic
- step graphs
- drag
- attraction
- attraction drag
- attraction conditional
- attraction two targets
- gravity well
- wind
- resting position
- rubber band bounds
- photo scroller
Demo use mouse events to keep code simple, even though I recommend using physics for touch-based devices. Yes, I realize the irony.
Additional resources
- Nature of Code by Daniel Shiffman, Chapters 1 & 2
- Coding Math videos on YouTube by Keith Peters
探索相关项目
加载中…