News for hackers. Stuff that matters.
Re:The New Twitter Logo in CSS by joshnh on Thursday June 07, 2012 @01:28AM (#4077737)
While I appreciate the time and effort that went into producing this, I must admit that I am a little confused; what is to be gained by recreating logos using only CSS?

There are only two answers that I can come up with: practice or showcasing new properties. In my opinion, both of those reasons don't justify recreating an image using CSS. Surely if you wanted to practice, or showcase a property, you would be better off creating something that could actually be used?

Please feel free to 'enlighten' me, as I have almost certainly overlooked something.

Re:The New Twitter Logo in CSS by brianfryer on Thursday June 07, 2012 @02:05AM (#4077809)
Why do people make sand castles? Or sidewalk chalk-art? Why put energy into something seemingly trivial?

Because we (collectively) can.

And yes, people would be better off creating something 'useful'. But everyone has hobbies, and this may very well be just that -- someone's hobby project.

The page also gives congratulations to the new logo. I suppose this could even be a modern day tribute to honor Twitter's new direction.

Re:The New Twitter Logo in CSS by ComputerGuru on Thursday June 07, 2012 @03:09AM (#4077945)
It's art. What purpose does art ever have?

If you're the kind of person that feels art is of no real value, this is the same. If you're the kind of person that feels are is in and of itself something to cherish for its own sake, then this is also the same.

Re:The New Twitter Logo in CSS by duaneb on Thursday June 07, 2012 @09:13PM (#4082176)
There is no originality here. I have a lot of difficulty accepting this as anything but time spent adjusting CSS to conform to the reference image. Impressive for the time spent, but hardly art.
Re:The New Twitter Logo in CSS by ComputerGuru on Friday June 08, 2012 @02:37AM (#4083033)
Same "originality" as in any one of these: https://encrypted.google.com/search?q=hyper+realistic+painti...
Re:The New Twitter Logo in CSS by duaneb on Friday June 08, 2012 @09:41PM (#4086905)
Well, A) there isn't any originality there, and B) it is more impressive because of the skill involved. There is little to no skill in recreating a logo as simple as Twitter's out of vector circles - the originality was in the design, not the implementation.
Re:The New Twitter Logo in CSS by upperdog on Thursday June 07, 2012 @02:02AM (#4077803)
I would not recommend using CSS generated images in production – SVG is a much better choice. In this demo, the goal is merely to demonstrate the beautiful shapes behind the new logo.

(Sidebar: do you really need "justification" for creating anything?)

Re:The New Twitter Logo in CSS by joshnh on Thursday June 07, 2012 @02:19AM (#4077839)
I was merely curious as to the thought process. Thanks for offering some insight.
Re:The New Twitter Logo in CSS by yagoogaly on Thursday June 07, 2012 @01:38AM (#4077754)
The only advantage I can think of is that if the circle sizes are set dynamically, then the logo will scale to any resolution.
Re:The New Twitter Logo in CSS by alanh on Thursday June 07, 2012 @02:37AM (#4077884)
Yes, but the same is true of SVG.
Re:The New Twitter Logo in CSS by jQueryIsAwesome on Thursday June 07, 2012 @02:12AM (#4077824)
And looks pretty for animations. Using Chrome console:

    $$(".wrapper")[0].setAttribute("style",
    "-webkit-transition: 1000ms ease;-webkit-transform: scale(0.3);")
Re:The New Twitter Logo in CSS by theallan on Thursday June 07, 2012 @01:52AM (#4077777)
Speed and size - if you you were using images, you are going to incur an extra HTTP request, while using this method everything needed to draw the logo is already at the client-side. In terms of size, the HTML and CSS needed to draw the logo could well be smaller than that needed for an image. In this case the HTML+CSS is around 2.6K (without the Google analytics code), while a screenshot of the logo is around 10K - and the HTML+CSS version will scale to any size without pixilation.

Google's Marissa Mayer did a talk about Google's quest for speed a few years back, where she showed that an HTML version of the Checkout icon was faster than an image: http://www.bitcurrent.com/marissa-mayer-at-velocity09-and-go... (about halfway through that article).

Re:The New Twitter Logo in CSS by illicium on Thursday June 07, 2012 @02:39AM (#4077888)
Or you could just use SVG.

https://gist.github.com/2b239e5d31ddc82ab660

is 897 bytes (579 gzipped)

Re:The New Twitter Logo in CSS by theallan on Thursday June 07, 2012 @02:49AM (#4077908)
I should have said that - excellent point!
Re:The New Twitter Logo in CSS by tfennelly on Thursday June 07, 2012 @04:24AM (#4078068)
If image loading speed is an issue you can embed the image in the html <img src> as a base64 encoded string.... no remote loading then.

That of course is dog ugly ... just say'n it's possible :) An SVG or CSS approach would surely be more maintainable.

Re:The New Twitter Logo in CSS by sp332 on Thursday June 07, 2012 @09:48AM (#4078987)
A PNG of the same size as the one on that page is only 2.8 kB https://www.dropbox.com/s/6epgslr0olpu2rp/tlogosmaller.png
Re:The New Twitter Logo in CSS by joshnh on Thursday June 07, 2012 @01:57AM (#4077791)
What would you then recommend when needing to support legacy browsers?
Re:The New Twitter Logo in CSS by theallan on Thursday June 07, 2012 @02:48AM (#4077903)
Heh - it is not without its drawbacks! The Google Checkout icon didn't hit that problem, as they used tables, but certainly in this case I don't see how that could be achieved quite so readily.
Re:The New Twitter Logo in CSS by ekianjo on Thursday June 07, 2012 @02:53AM (#4077919)
For legacy browsers you do not have much choice but a bitmap image. SVG is not supported under IE8, and CSS support is very variable depending on the browser versions as well.
Re:The New Twitter Logo in CSS by fady on Thursday June 07, 2012 @04:19AM (#4078059)
overlooked something? are you joking? gee whiz..i wish i could downvote you. it's art, and this specific logo works really well as CSS. awesome job @upperdog_se
Re:The New Twitter Logo in CSS by joshnh on Thursday June 07, 2012 @05:41AM (#4078220)
I agree with you in the case of something original, but I'm not entirely sure how this qualifies?
Re:The New Twitter Logo in CSS by Melug on Thursday June 07, 2012 @02:48AM (#4077904)
It will look cool in iPad, PC, Mobile devices. No need to create multiple images at any size.
Re:The New Twitter Logo in CSS by i386 on Thursday June 07, 2012 @02:53AM (#4077917)
Use SVG. It's a million times better and its a lot less likely to break. Heck, it's designed to draw images.