News for hackers. Stuff that matters.
Re:A Quick Look Into The Math Of Animations With JavaScript by joahua on Tuesday October 04, 2011 @09:45PM (#3073773)
I'd love to see this in action - do you have a link? Do you literally serve a precomputed array as part of the JS and iterate over that using opacity/IE filter/whatever, or is it more nuanced than that?
Re:A Quick Look Into The Math Of Animations With JavaScript by thaumaturgy on Tuesday October 04, 2011 @10:30PM (#3073900)
Sure: http://shomi.associatedtechs.com/

It's not precomputed server-side, it's precomputed when the fade effect is called in the JS. The value for each step is then stored in the task object that performs the fade. Which is cheating a little bit, I suppose, but this way, I can fade from any value to any value, at what appears to be the same "speed", without any glitching.