Page #6 - Neography


CSS3 Trans­forms & @font-face Experiment.

Wednesday, March 31st, 2010

This is the first of what I hope are num­ber of exper­i­ments I plan on work­ing on over the next few months, all in an effort to get acquain­ted with some of the new CSS3 fea­tures out in the wild that seem to be gain­ing some traction.

The last few months have been pretty excit­ing, with all the talk about new CSS3 fea­tures and how browsers are adding sup­port for them, it’s a great time to be a designer for the web. It’s a lot easier these days to exper­i­ment with dif­fer­ent typefaces, lay­outs and tech­niques pre­vi­ously not available.

Take a look at the image below:

All Humans

No, it’s not a poster. It’s a web page com­pletely designed using basic CSS and new CSS3 tech­niques. Pretty impress­ive right?

How’s it done?

Pretty easy actu­ally, I used basic CSS pos­i­tion­ing and some of the newer CSS3 fea­tures to put it together. Below are a few samples of the code so you can get an idea:

@font-face

@font-face {
	font-family: 'ChunkFiveRegular';
	src: url('Chunkfive.eot');
	src: local('ChunkFive'),local('ChunkFive'),
	    url('Chunkfive.woff') format('woff'),
	    url('Chunkfive.ttf') format('truetype'),
	    url('Chunkfive.svg#ChunkFive') format('svg');
}

Trans­forms

-webkit-transform: rotate(1deg);
-moz-transform: rotate(1deg);
-o-transform: rotate(1deg);

Text-Shadows & Box Shadows

text-shadow: 2px 8px #b5c1b8, -1px -1px #fff;
box-shadow: 4px 6px #b5c1b8;

The font used is called Chunk, a nice bold slab serif. The text is an excerpt from the Uni­ver­sal Declar­a­tion of Human Rights.

Works in these browsers

  • Fire­fox 3.6
  • Safari 4
  • Chrome 5
  • Opera 10

IE can suck it.

So there it is. Noth­ing out of this world, how­ever I think it shows the poten­tial of CSS spe­cific­ally the poten­tial in using new CSS3 features.

In the words of Matt Brett:

if you showed me that 10 years ago, my head would have exploded!

Indeed. We’ve come a long way.

46 Comments

  1. 1
    joddy street March 31st, 2010

    if you showed me that 2 years ago, my head would have exploded! its spin­ning right now. Nice !!

  2. 2
    fjpoblam March 31st, 2010

    I can eas­ily see the shad­ows. I don’t under­stand the rota­tion of “ARE BORN”. Please elucidate.

  3. 3
    Erik Teichmann March 31st, 2010

    Very nice! I dig the ampersand pos­i­tion­ing behind the other text. As soon as IE gets on the freak­ing wagon, we’ll be in business!

  4. 4
    Alex Giron March 31st, 2010

    @fjpoblam That’s also achieved via CSS3 trans­forms, basic­ally rotat­ing the words 90 degrees counter clock-wise like so:

    –webkit-transform: rotate(-91deg);
    –moz-transform: rotate(-91deg);
    –o-transform: rotate(-91deg);

  5. 5
    Andrew March 31st, 2010

    WOW…it’s amaz­ing how power­ful CSS has become…too bad IE has put up so many prob­lems for it.

    Nice job!

  6. 6
    Carlos March 31st, 2010

    You showed me that 2 seconds ago and my head exploded.

    Very cool. Stuff like this just makes me hate IE even more for not sup­port­ing it.

  7. 7
    Hian Battiston March 31st, 2010

    CSS3 Rocks!

  8. 8
    tinym March 31st, 2010

    @font-face is so very nice to use! this is a beau­ti­ful example of what can be done with aid from mod­ern web browsers. thanks for show­ing it off!

  9. 9
    Billee D. March 31st, 2010

    That’s very nice. It’s a really lib­er­at­ing time to be a web designer, isn’t it? :)

  10. 10
    Stratisphere March 31st, 2010

    –webkit-transform: rotate(-91deg);
    –moz-transform: rotate(-91deg);
    –o-transform: rotate(-91deg);

    …to rotate something

  11. 11
    Martin April 1st, 2010

    But what about ren­der­ing in dif­fer­ent browsers and even dif­fer­ent os? Some browsers render fonts bolder… :(

  12. 12
    Patrick Haney April 1st, 2010

    Wait, you mean this doesn’t work in INTERNET EXPLORER?!? How is that possible!?

    Appar­ently all browsers are NOT born free and equal.

  13. 13
    nicci April 2nd, 2010

    I love it .… design that works for web at last integ­ra­tion between web and design — yay

  14. 14
    HB April 2nd, 2010

    FYI, 90 degree rota­tion is avail­able using IE fil­ters, so one could cre­ate a sim­ilar ver­sion of this poster for IE if one were so inclined.

    Box shad­ows are also avail­able in IE but they’re hideous and a pain to work with.

  15. 15
    Sheuefei Kao April 6th, 2010

    Can’t believe you are using CSS3 for this Declar­a­tion, it looks so much like done by graphic design tools.

    I have quoted your design with Twit­ter. Hope you permit.

  16. 16
    Benxamin April 6th, 2010

    So where’s the inter­ac­tion? Rollover states, etc?

  17. 17
    Alex Giron April 6th, 2010

    @Benxamin This example is just meant to show what we can do right now with CSS3 Trans­form, Border-Radius, @font-face etc… Inter­ac­tions with CSS3 can be a whole other blog post.

  18. 18
    Beelissa April 6th, 2010

    I think this is really cool! I checked. I’m run­ning Fire­fox 3.6 and Chrome 5.something. So I’m good to go, let’s do it! Isn’t this what we’ve all been wait­ing for?

  19. 19
    Gav April 7th, 2010

    That’s sick! Too bad about IE though, I hate IE but at my work­place we have to sup­port it :(

  20. 20
    Amber Weinberg April 7th, 2010

    Indeed my head would’ve exploded as well. That’s awe­some! And yes…who cares about IE any­ways? Show them some­thing plain.

  21. 21
    Shane Rich April 8th, 2010
  22. 22
    khalid April 8th, 2010

    css is most power­ful text form­at­ing lan­guage it provide the inter­ac­ted face of the web pages and with the help and code which you provide is help me a lot thanks for that

  23. 23
    Colleen April 9th, 2010

    It is a poster. WTF

  24. 24
    RJGNYC April 9th, 2010

    Abso­lutely gor­geous! I thought you’d like to know that it semi-works on iPhone’s Safari. the “&” places oddly/is the wrong typeface, the point­ing hands around “equal” show up as rect­angles, and “are born” is a bit lower on the F, but a lot closer than what shows up on IE!

  25. 25
    Caspar April 10th, 2010

    I agree with Amber: let’s have fun with CSS3, with or without IE. Super example, Alex!

  26. 26
    Free CSS Menus April 10th, 2010

    This is a fant­astic example of the pos­sib­il­it­ies with CSS3… its just a shame that it doesnt have full cross-browser sup­port yet! Inter­net Explorer has been crash­ing on my PC since early last year, so the chances of it sup­port­ing CSS3 com­mands are non-existant.

    Top Marks for an awe­some CSS3 example!!!

  27. 27
    Bill April 12th, 2010

    Let’s not for­get that Apple is attempt­ing to own the pat­ent on CSS trans­form (and CSS animation):

    http://www.position-absolute.com/news/apple-patents-css-transform-and-animation/

  28. 28
    yoncy April 12th, 2010

    it is a smart idea for begin­eers like me

  29. 29
    Nancy April 13th, 2010

    This is great!

    Unfor­tu­nately, my cli­ent base is IE7 so this would be abso­lutely use­less to me.

  30. 30
    Clint McKoy April 18th, 2010

    Nice… the heck with IE.

  31. 31
    Tony April 26th, 2010

    “IE can suck it.“
    Fuck yea!

  32. 32
    Kishore Mylavarapu April 26th, 2010

    Yah really nice tech­nique of CSS3.I have one sug­ges­tion about your present layout.The text is not dis­play­ing clearley..it is hard to read the text..(grey in black)..

  33. 33
    matthew carleton May 6th, 2010

    You have inspired me sir, thank you very much.

  34. 34
    Derek May 12th, 2010

    Try to go to that web­site using IE.
    It’ll sur­prise you.
    (I’m using IE8.)

  35. 35
    Frazer Cox May 21st, 2010

    I’ve read a lot about IE9 being css3 stand­ards com­pli­ant (but not hold­ing my breathe) and even if it was some of my cli­ents are still fuss­ing about sites in IE6!

  36. 36
    Rob May 27th, 2010

    Its great to know what we can look for­ward to. But, with 30%+ of vis­it­ors not being able to render this design prop­erly, does it make sense to use these tech­niques rather than use a back­ground image replacement?

  37. 37
    Alex Giron May 27th, 2010

    @Rob

    We are what you call early adop­ters who are will­ing to live with that 30% not see­ing everything cor­rect. At some point all browsers will sup­port these fea­tures and we won’t have any issues, but without early adop­ters noth­ing changes.

  38. 38
    Ant Gray June 3rd, 2010

    Super, but I’d say SVG is more prac­tical for that. Per­form­ance wise.

  39. 39
    tapps June 4th, 2010

    ie, can indeed, suck it.

    great work. :)

  40. 40
    Christian June 17th, 2010

    I’m not see­ing a link to an HTML demo page of that poster you made. Is there one? Know­ing me I’ll find it right after I sub­mit this comment.

  41. 41
    Christian June 17th, 2010

    Yep, found it. Duh. Very cool.

  42. 42
    Sequoia July 2nd, 2010

    Why don’t the hands come thru in opera 10?

  43. 43
    noel July 6th, 2010

    Hmm.…Im view­ing it in IE8 and fire­fox now and they both look almost the same. Has IE8 already added sup­port for this in the past sev­eral months?

  44. 44
    noel July 6th, 2010

    My bad, was view­ing an IMAGE, not the actual CSS lay­out. So sorry if I caused confusion.

  45. 45
    Shawn August 19th, 2010

    Not sure what I like best…the css example itself or the line below it that says IE can suck it…lol. Looks great…excited to see what people will come up with when we dig into this a little more.

  46. 46
    Corneliu August 19th, 2010

    It works in IE9 Preview :)

Got something on your mind?

 characters available