News for hackers. Stuff that matters.
Re:Myself – v1.0.3 by bshimmin on Friday April 03, 2015 @03:11PM (#9317764)
This is outrageously cool. Really nicely executed.

That said, it does rather illustrate just how nasty the syntax is for creating animations with CSS.

Re:Myself – v1.0.3 by joshstrange on Friday April 03, 2015 @03:20PM (#9317819)
I was just thinking that. I don't do much with CSS directly (I know enough to be dangerous) but I kept thinking "Ok, now it will start beating" and then 2-3 more lines of practically gibberish and rinse and repeat until the end when it started beating.

WAY too much CSS to do something like that. I'm not sure what the fix is though? A JS library to generate the CSS animation with a saner syntax (I realise CSS probably needs all of that stuff to be extendable but it's a massive amount of code for something that should be easier to accomplish IMHO).

Re:Myself – v1.0.3 by omegavesko on Saturday April 04, 2015 @04:58AM (#9320398)
>WAY too much CSS to do something like that. I'm not sure what the fix is though? A JS library to generate the CSS animation with a saner syntax (I realise CSS probably needs all of that stuff to be extendable but it's a massive amount of code for something that should be easier to accomplish IMHO).

The most logical solution would be the way we extend CSS syntax today - preprocessors like LESS and SASS. You don't need to render the valid CSS clientside, you can just compile it into CSS before you deploy it.

Re:Myself – v1.0.3 by weinzierl on Friday April 03, 2015 @03:31PM (#9317882)
> That said, it does rather illustrate just how nasty the syntax is for creating animations with CSS.

Especially in contrast with how quickly and concisely the heart was build. All the building blocks were never meant to build hearts or shapes other than boxes. The animation elements on the other hand are used for their intended purpose and still...

Re:Myself – v1.0.3 by Raphmedia on Friday April 03, 2015 @04:53PM (#9318437)
It isn't that bad. Remember that he prefixed for webkit and also wrote everything by hand. Most of CSS is written using mixins/functions these days or at the very least with some help with the text editor.

He also created two animation. One that us subtle in the background and the beating of the heart.

That being said, yes. They are a pain to write.

Re:Myself – v1.0.3 by zerocrates on Friday April 03, 2015 @03:22PM (#9317833)
Chrome/Blink is apparently enabling unprefixed animations in Chrome 43, so that will soon just leave Safari requiring all that -webkit- business.
Re:Myself – v1.0.3 by underwater on Saturday April 04, 2015 @01:49PM (#9321546)
This isn't really a fair representation of the syntax. He's using vendor prefixes, defining properties that typically aren't needed (custom timing functions), and has broken rules up over multiple blocks for the sake of this demo. In typical usage the code would be two or three times more concise.