News for hackers. Stuff that matters.
Re:GitHub now has view modes for image diffs. by marcamillion on Monday March 21, 2011 @07:40PM (#2352186)
Btw, anyone know how they are doing those various views ? Are they using Canvas or is there something else ?

I love that they are doing all of this with just css & js and no flash.

It is things like this, that make me excited about the future of the web.

It is highly likely we will see more complex things with non-flash technologies, than we have seen with flash technologies to date, in my humble estimation.

Re:GitHub now has view modes for image diffs. by nborgo on Monday March 21, 2011 @08:27PM (#2352349)
The swipe and onion skin are pretty simple. Both of them put the images in the same place. When you swipe, the width of the top image changes. For the onion skin, the opacity changes.

Difference has some canvas magic going on.

Re:GitHub now has view modes for image diffs. by marcamillion on Monday March 21, 2011 @09:00PM (#2352455)
This is brilliant!!!

Thanks for this explanation. That makes total sense :)