by michaelvillar on 6/15/15, 5:33 PM with 47 comments
by drostie on 6/15/15, 6:46 PM
x''(t) = -2a * x'(t) - k * x(t)
(spring force k, linear friction a), the solution is generally a sum of solutions x = C exp(w t) for some arbitrary constant C and w = w(a, k). Plugging this in produces: w^2 + 2 a w + k = 0
(w + a)^2 + k - a^2 = 0
w = -a ± sqrt(a^2 - k)
For `k > a^2`, the system is "underdamped" and you see sinusoidal oscillations, and increasing `a` will make the system relax to equilibrium faster. But for `k < a^2`, the system is "overdamped" and increasing `a` will make the system relax slower. (If you find this hard to imagine, think about what happens as `a` tends to infinity: there is so much friction that the spring just barely crawls to its final destination. Comparisons involving molasses and other high-viscosity substances might be apt.When turning the frequency all the way down, I couldn't find a point where the friction started to make the relaxation to equilibrium slower rather than faster.
by valgaze on 6/15/15, 8:51 PM
Demo: http://daneden.github.io/animate.css/
Of course there's always a the danger of "overdoing it" w/ ridiculous animations but if you can avoid that temptation it's a very handy tool.
by pimlottc on 6/15/15, 6:35 PM
by agumonkey on 6/15/15, 6:15 PM
by zecho on 6/15/15, 6:24 PM
by drcode on 6/15/15, 6:17 PM
(BTW- This is great work, I just hope UI devs don't overdo it...)
by talmand on 6/15/15, 6:35 PM
I'm not seeing anything "physics" in the traditional sense; just manipulating the matrix3d in a transform property of an element in real-time to provide difficult or impossible effects with CSS alone.
by th0ma5 on 6/15/15, 6:10 PM
by lacker on 6/16/15, 12:32 AM
by iraldir on 6/16/15, 9:41 AM
by html5web on 6/15/15, 6:13 PM
by z3t4 on 6/15/15, 6:40 PM
with (context) {
beginPath();
moveTo(100, 100);
lineTo(100, 300);
lineTo(300, 300);
closePath();
stroke();
}
by tomphoolery on 6/15/15, 11:55 PM
by johnalxndr on 6/15/15, 6:58 PM
by denniskane on 6/15/15, 7:42 PM
This has been under very active development for going on 3 years now, and it is just starting to get to the point where it can stop being called a prototype or experiment.