HTML5 amazingness
September 24, 2010 @ 12:11pm
by Jeff Byrnes
So Microsoft has turned the publicity machine up to 11 for the IE9 beta release, and there’s some truly impressive pieces that have come out of it. Most notably, the Lost World’s Fairs! These are three graphically and programmatically impressive pieces, using all manner of techniques. The two most impressive to me, however, are the Atlantis World’s Fair and the El Dorado World’s Fair.
Both sites are long, vertical layouts, taking advantage of absolute, relative, and fixed positioning, Typekit for rich typography, Modernizr to make sure things play somewhat nicely in less capable browsers (IE7 & IE8, for example), and jQuery as their JavaScript library. Both also utilize Lettering.JS, a rather interesting piece of JavaScript they developed to enable, as they call it, “radical Web Typography.”
Lettering.JS takes whatever element you hand it, parses through it, and provides you with a series of individual <span> tags for each of the letters in your element. So, using their example, you can provide it with this:
<h1 class="fancy_title">Some Title</h1>
And you’ll receive this:
<h1 class="fancy_title">
<span class="char1">S</span>
<span class="char2">o</span>
<span class="char3">m</span>
<span class="char4">e</span>
<span class="char5"></span>
<span class="char6">T</span>
<span class="char7">i</span>
<span class="char8">t</span>
<span class="char9">l</span>
<span class="char10">e</span>
</h1>
Seems like it just makes span-itis, right? Think again. Each of those spans can now be individually styled, which, when you look at their examples, suddenly grants you the ability to do some very impressive pieces of work. Yet, it leaves your markup nice, clean, and easy to maintain.
Lettering.JS goes two steps beyond just the letter-wrapping, offering the ability to create <span> tags that wrap whole words or even whole lines. The line wrapping takes its cues from <br /> tags, so this:
<p class="line_split">
Line 1<br />
Line 2<br />
Line 3
</p>
Becomes this:
<p class="line_split">
<span class="line1">Line 1</span>
<span class="line2">Line 2</span>
<span class="line3">Line 3</span>
</p>
Taking a look at Atlantis World’s Fair and El Dorado World’s Fair, you can see just how impressive this technique can truly be. The markup is super clean & relatively lightweight. To avoid a FOUT (Flash of Unstyled Text), they do have their JavaScript loading in the <head>, but even with that, things still load quite rapidly.
Seeing as IE9 can handle pages like these just as well as Firefox 3.6+ and Safari 5+, it seems like the web is about to get a whole lot nicer.
Tags
CSS3, HTML5, IE9, javascript, jQuery, typography
Comments
Obama’s New Whitehouse.gov
January 20, 2009 @ 12:06pm
Updated — July 13, 2011 @ 12:25pm
by Rob Sanchez
If you haven’t noticed yet, the new White House website debuted today. It has a modern, classy look, similar to the Obama campaign website. The site features a blog; not sure if President Obama himself will be blogging, though. It also looks like the site will host a weekly video address from the President. Looked at the source code, and yes, they are using my favorite, jQuery! Nicely done.
Tags
Comments
jQuery Tablesorter Plugin
October 24, 2008 @ 9:59pm
Updated — February 3, 2009 @ 7:49am
by Rob Sanchez
I read about the jQuery Tablesorter Plugin a while back. It seemed cool enough.
tablesorter is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell.
I didn’t bother to try it out, though. I guess I didn’t really believe that it could work so easily.
Here I am months later, in need of some table sorting. So I went ahead and tried it. And it JUST WORKED. As advertised. I did not have to jump through any configuration hoops. Cross-browser? No problem. Developers, this plugin will save you time. Props to Christian Bach who created this plugin.
| Pet | Name | Color |
|---|---|---|
| Cat | Anna | Brown |
| Bird | Whistler | Yellow |
| Dog | Fido | Grey |
| Cat | Metro | Black |
| Dog | Rover | Brown |
Tags
javascript, jQuery, plugins, recommended






