News for hackers. Stuff that matters.
Re:Our solar system - A Webkit Animation using CSS3 by joblessjunkie on Friday May 21, 2010 @11:42AM (#1367661)

    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
Really? Is this what we have to look forward to in CSS for the coming decade?
Re:Our solar system - A Webkit Animation using CSS3 by daleharvey on Friday May 21, 2010 @12:16PM (#1367787)
no, they will just be dropped when there is a standard syntax
Re:Our solar system - A Webkit Animation using CSS3 by joblessjunkie on Friday May 21, 2010 @02:31PM (#1368288)
But old browsers are forever.... witness IE6
Re:Our solar system - A Webkit Animation using CSS3 by devinj on Saturday May 22, 2010 @12:20AM (#1369780)
Only old IE is forever. Chrome autoupdates very fast, Firefox a bit less so. I don't remember about Safari but I think they upgrade fast too.
Re:Our solar system - A Webkit Animation using CSS3 by daleharvey on Friday May 21, 2010 @04:15PM (#1368661)
by the time the lagards implement it, it will be standardised, ie doesnt require a prefix now that its finally implementing it.
Re:Our solar system - A Webkit Animation using CSS3 by mturmon on Friday May 21, 2010 @01:51PM (#1368123)
Here's a static picture of the same thing, but much more accurate and inclusive:

http://ssd.jpl.nasa.gov/?orbits

e.g.,

http://ssd.jpl.nasa.gov/?ss_inner

http://ssd.jpl.nasa.gov/?ss_distant

Re:Our solar system - A Webkit Animation using CSS3 by yankeeracer73 on Friday May 21, 2010 @09:19AM (#1367219)
The processor fan started up on my Macbook Pro 17" just like it does when I use Flash for more than 5 seconds. How ironical. :)
Re:Our solar system - A Webkit Animation using CSS3 by sirn on Friday May 21, 2010 @10:04AM (#1367335)
Oddly, it use 100% of one of my i7 iMac core when running on Chrome (6.0.408.1). However, the animation play very smooth with only 1~2% CPU usage when running on Safari (4.0.5 6531.22.7).

So I assume you're using Chrome?

Edit: -webkit-animation in general seems to be very slow in Chrome.

Edit again: Oh right, -webkit-animation is hardware-accelerated in Safari. http://webkit.org/blog/324/css-animation-2/#comment-25071

Re:Our solar system - A Webkit Animation using CSS3 by swannodette on Friday May 21, 2010 @10:20AM (#1367376)
Huh. I have a new 13" Macbook Pro and my CPU is at 5%-8% in Safari.

However Google Chrome does not look like it hardware accelerates CSS animations so it's eating up 90% CPU on this.

Re:Our solar system - A Webkit Animation using CSS3 by jws on Friday May 21, 2010 @09:41AM (#1367260)
Odd. Desktop iMac, older Core 2 version, it only takes me from my background 2% cpu use to 7% cpu use. Perhaps it is making heavy use of the GPU, which I wouldn't see in the cpu usage stats. (I add: using Safari.)
Re:Our solar system - A Webkit Animation using CSS3 by jim-greer on Friday May 21, 2010 @09:40AM (#1367255)
This has improved in 10.1, finally.
Re:Our solar system - A Webkit Animation using CSS3 by hackermom on Friday May 21, 2010 @10:38AM (#1367438)
Odd. My 2.26ghz 13" MB Pro puts Safari at under 10% CPU usage for this; the CPU doesn't even clock over 1ghz running it.
Re:Our solar system - A Webkit Animation using CSS3 by cpr on Friday May 21, 2010 @10:21AM (#1367381)
It looks like only Apple has hooked up WebKit animation to an underlying Core Animation-equivalent layer in the OS which uses the GPU for most of the hard work.

Not sure if Google is really motivated to do this kind of system-specific work in Chrome beyond the basic port.

Re:Our solar system - A Webkit Animation using CSS3 by swannodette on Friday May 21, 2010 @10:25AM (#1367395)
I would argue that they should be. CSS is well understood by designers/programmers and doing animations all in JS is error prone and off course a CPU hog. Hardware acceleration is particularly important when you're talking about devices with underpowered CPUs (Android). On my iPad/iPhone CSS animations outperform JS animations by a ridiculous margin.
Re:Our solar system - A Webkit Animation using CSS3 by cpr on Friday May 21, 2010 @11:31AM (#1367634)
Just to clarify, they do have the CSS-based animations, since they're WebKit-based, but they're just not hooked up to an underlying hardware-based implementation.
Re:Our solar system - A Webkit Animation using CSS3 by BoppreH on Friday May 21, 2010 @10:39AM (#1367441)
Chrome eats CPU like there's no tomorrow and the frame rate is around 15. Firefox doesn't even animate it.

Seriously, what is the point of this demos? It's like that Star Wars movie in ASCII. Interesting, but not very useful.

Re:Our solar system - A Webkit Animation using CSS3 by hackermom on Friday May 21, 2010 @10:50AM (#1367478)
Perhaps a good spurring for everyone else than Apple to pick up pace and get with implementing specifications for their browsers.
Re:Our solar system - A Webkit Animation using CSS3 by BoppreH on Friday May 21, 2010 @03:40PM (#1368505)
I wasn't referring to the implementations, but this new wave of CSS3/HTML5 demos doing nothing that could solve a real-world problem.

Sure, I'd like all browsers to have a correct implementation of this technologies, I'm just questioning this type of demo. In the end they are just a fancy ACID-like test and frankly, we already have more than enough for this use.

Re:Our solar system - A Webkit Animation using CSS3 by icefox on Friday May 21, 2010 @11:02AM (#1367512)
As cool as this is Neptune and Pluto orbits are wrong. They cross each others paths.
Re:Our solar system - A Webkit Animation using CSS3 by ugh on Friday May 21, 2010 @11:09AM (#1367539)
They should have just left out Pluto altogether. It’s not a planet. They could have put in the Kupier belt like they put in the asteroid belt.
Re:Our solar system - A Webkit Animation using CSS3 by alabut on Friday May 21, 2010 @12:28PM (#1367821)
This is a great demonstration of why to use CSS3 animations - Flash doesn't support the concept of graceful degradation. This page turns into a static image in Firefox/Mac instead of borking out with a blue lego piece.
Re:Our solar system - A Webkit Animation using CSS3 by Mgreen on Friday May 21, 2010 @01:00PM (#1367947)
I really appreciate the effort that has gone into building the demo. But i disagree with you.It is extremely easy for developers to provide fallback content when Flash is not availble.

As a developer, here is why i(personally) wont choose CSS3 animations for building similar content anytime in the near future:

-Works only on webkit browsers

-Performance is really bad on Chrome. Compared to most of the heavy weight flash content out there, this is just a very basic animation.

Re:Our solar system - A Webkit Animation using CSS3 by alabut on Friday May 21, 2010 @03:06PM (#1368402)
"It is extremely easy for developers to provide fallback content when Flash is not availble."

Really? How? I was an actionscripter for years before I dropped Flash from my arsenal and worked at a game company that would've loved to provide their games on systems without Flash.

Re:Our solar system - A Webkit Animation using CSS3 by X-Istence on Friday May 21, 2010 @10:00AM (#1367316)
Works well on my MacBook Pro 2.4 Ghz, Safari went from 0.0 %CPU used to 10.0 used, not bad. Flash tends use much more than that.
Re:Our solar system - A Webkit Animation using CSS3 by jheriko on Friday May 21, 2010 @01:27PM (#1368030)
Its interesting, just a shame it works for nobody... er webkit users only and even then it looks glitchy (I used Chrome).
Re:Our solar system - A Webkit Animation using CSS3 by fredoliveira on Friday May 21, 2010 @02:12PM (#1368208)
give it a try in safari. I think you'll be amazed.
Re:Our solar system - A Webkit Animation using CSS3 by nico_h on Friday May 21, 2010 @08:51AM (#1367167)
Works smoothly in Safari on a macbook air.
Re:Our solar system - A Webkit Animation using CSS3 by Batsu on Friday May 21, 2010 @09:13AM (#1367208)
I'm not sure I would call it smooth in Chrome on Windows 7, and this is on a gaming PC (more or less). The process was also using 25% CPU, which I believe Process Explorer would report as one full core.
Re:Our solar system - A Webkit Animation using CSS3 by iaskwhy on Friday May 21, 2010 @10:17AM (#1367367)
Not smooth at all when you scroll.

It plays nicely on iPhone 2G but scrolling and zooming make it hang for a while, I even made the animation stop somehow.

I'm not sure this is the way to go...

Re:Our solar system - A Webkit Animation using CSS3 by papertiger on Friday May 21, 2010 @10:10AM (#1367347)
Not so smooth on Chrome/Ubuntu (on Mac hardware) either.

Cool experiment.

Re:Our solar system - A Webkit Animation using CSS3 by zengenuity on Friday May 21, 2010 @09:06AM (#1367196)
Also on an iPhone 3G. Text is small, but the animation smooth and not slower than on my Macbook.
Re:Our solar system - A Webkit Animation using CSS3 by rauljara on Friday May 21, 2010 @09:08AM (#1367202)
Neat. Anyone know if there's a good way to do elliptical orbits using CSS3?
Re:Our solar system - A Webkit Animation using CSS3 by xhuang on Friday May 21, 2010 @09:24AM (#1367231)
i think you can change the border radius to get different shape out of your element box(top-left, top-right, bottom-left, bottom-right corners).

http://www.css3.info/preview/rounded-border/

Re:Our solar system - A Webkit Animation using CSS3 by hackermom on Friday May 21, 2010 @10:38AM (#1367439)
Does anyone know what the belt of "scraps" between Mars and Jupiter is? Is there another "Kuiper belt" of sorts sitting right outside Mars?
Re:Our solar system - A Webkit Animation using CSS3 by mapleoin on Friday May 21, 2010 @10:57AM (#1367499)