<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Justin Belcher, Durham, NC</description><title>gravitywins</title><generator>Tumblr (3.0; @gravitywins)</generator><link>http://log.gravitywins.com/</link><item><title>Manor House / Jez (by eveningtweed)</title><description>&lt;img src="http://30.media.tumblr.com/tumblr_l6doi78f8h1qz8guro1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://www.flickr.com/photos/eveningtweed/4535156159/sizes/l/"&gt;Manor House / Jez&lt;/a&gt; (by &lt;a href="http://flickr.com/photos/eveningtweed"&gt;eveningtweed&lt;/a&gt;)&lt;/p&gt;</description><link>http://log.gravitywins.com/post/881227726</link><guid>http://log.gravitywins.com/post/881227726</guid><pubDate>Fri, 30 Jul 2010 17:15:59 -0400</pubDate></item><item><title>Yago Hortal /via but does it float</title><description>&lt;img src="http://27.media.tumblr.com/tumblr_l6a08u26J91qznigwo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Yago Hortal /via &lt;a href="http://butdoesitfloat.com/409187/-b-ONLY-THE-MADMAN-IS-ABSOLUTELY-SURE-b"&gt;but does it float&lt;/a&gt;&lt;/p&gt;</description><link>http://log.gravitywins.com/post/871230414</link><guid>http://log.gravitywins.com/post/871230414</guid><pubDate>Wed, 28 Jul 2010 12:24:30 -0400</pubDate></item><item><title>The Lights in The Old Town by Leonid Afremov</title><description>&lt;img src="http://26.media.tumblr.com/tumblr_l5pxvxzbCn1qzqvm2o1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;The Lights in The Old Town by Leonid Afremov&lt;/p&gt;</description><link>http://log.gravitywins.com/post/832248372</link><guid>http://log.gravitywins.com/post/832248372</guid><pubDate>Mon, 19 Jul 2010 11:03:44 -0400</pubDate></item><item><title>Pepper, freelensed</title><description>&lt;img src="http://30.media.tumblr.com/tumblr_l5d28v4Fgx1qznigwo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://www.flickr.com/photos/justinbelcher/4781100662/"&gt;Pepper, freelensed&lt;/a&gt;&lt;/p&gt;</description><link>http://log.gravitywins.com/post/795041643</link><guid>http://log.gravitywins.com/post/795041643</guid><pubDate>Sat, 10 Jul 2010 17:26:54 -0400</pubDate></item><item><title>Some seriously amazing paintings and drawings by David Kassan</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_l4shmu9Dl11qznigwo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Some seriously amazing paintings and drawings by &lt;a href="http://davidkassan.com"&gt;David Kassan&lt;/a&gt;&lt;/p&gt;</description><link>http://log.gravitywins.com/post/750557132</link><guid>http://log.gravitywins.com/post/750557132</guid><pubDate>Tue, 29 Jun 2010 14:49:42 -0400</pubDate></item><item><title>I’m loving The Defamation of Strickland Banks, a concept...</title><description>&lt;object type="application/x-shockwave-flash" data="http://vimeo.com/moogaloop.swf" width="400" height="225"&gt;&lt;param name="allowscriptaccess" value="always" /&gt;&lt;param name="allowfullscreen" value="true" /&gt;&lt;param name="movie" value="http://vimeo.com/moogaloop.swf" /&gt;&lt;param name="flashvars" value="clip_id=12114726&amp;color=00adef&amp;fullscreen=1&amp;server=vimeo.com&amp;show_byline=1&amp;show_portrait=1&amp;show_title=1" /&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;I’m loving &lt;em&gt;The Defamation of Strickland Banks&lt;/em&gt;, a concept album by English artist Plan B. The music is fresh, the lyrics are sharp, and the story itself (which charts the rise and fall of a fictional soul singer wrongly convicted of a crime) is pretty entertaining albeit clichéd. The &lt;a href="http://vimeo.com/planbvimeo"&gt;music videos&lt;/a&gt; for the album  are fantastic as well.&lt;/p&gt;</description><link>http://log.gravitywins.com/post/734813797</link><guid>http://log.gravitywins.com/post/734813797</guid><pubDate>Fri, 25 Jun 2010 11:27:00 -0400</pubDate></item><item><title>157/365 London eye **Explored N1!! (by fedora365)</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_l40eq717xJ1qznigwo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://www.flickr.com/photos/fedora8/4690850550/"&gt;157/365 London eye **Explored N1!!&lt;/a&gt; (by &lt;a href="http://flickr.com/photos/fedora8"&gt;fedora365&lt;/a&gt;)&lt;/p&gt;</description><link>http://log.gravitywins.com/post/697641430</link><guid>http://log.gravitywins.com/post/697641430</guid><pubDate>Mon, 14 Jun 2010 10:54:05 -0400</pubDate></item><item><title>Embracing HTML5/CSS3 with Modernizr</title><description>&lt;p&gt;&lt;a href="http://www.modernizr.com/"&gt;Modernizr&lt;/a&gt; is a killer JS library by &lt;a href="http://paulirish.com/"&gt;Paul Irish&lt;/a&gt; and &lt;a href="http://farukat.es/"&gt;Faruk Ates&lt;/a&gt; that uses feature detection to determine what next-generation web technologies are available to your visitors’ browsers. After running its tests, Modernizer stores results in both the markup (as classes on &lt;html&gt; like &lt;code&gt;.borderradius&lt;/code&gt; and &lt;code&gt;.no-csstransforms&lt;/code&gt;), and in a JavaScript object. These results allow you to write thoughtfully-targeted CSS and JS, which I think is essential to providing a rich experience for users.&lt;/p&gt;

&lt;p&gt;Considering a real-world example, say we have a content area we want to fade in after the page loads. Using CSS transitions we can animate the opacity to provide a smooth, GPU-accelerated fade, but not every browser supports transitions yet. Instead of leaving those users out, we’ll use jQuery to plug the holes. Let’s start with this markup:&lt;/p&gt;

&lt;ol class="snippet"&gt;
&lt;li&gt;&lt;section id=”content” class=”loading”&gt;&lt;/li&gt;
&lt;li class="ind-1"&gt;&lt;p&gt;&lt;/li&gt;
&lt;li class="ind-2 com"&gt;&lt;!— content goes here —&gt;&lt;/li&gt;
&lt;li class="ind-1"&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;/section&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You’ll notice we placed a &lt;code&gt;.loading&lt;/code&gt; class on &lt;code&gt;#content&lt;/code&gt;, which we can remove with JS after everything is ready to go. This class provides us a hook to both (1) display an animated spinner image as the page loads and (2) initiate the CSS transition. Here’s what the CSS looks like:&lt;/p&gt;

&lt;ol class="snippet"&gt;
&lt;li&gt;#content.loading { &lt;span class="kw"&gt;background&lt;/span&gt;: url(spinner.gif) &lt;span class="kw"&gt;no-repeat&lt;/span&gt; }&lt;/li&gt;
&lt;li&gt;#content.loading p { &lt;span class="kw"&gt;opacity&lt;/span&gt;: 0 }&lt;/li&gt;
&lt;li&gt;#content p { &lt;span class="kw"&gt;opacity&lt;/span&gt;: 1 }&lt;/li&gt;
&lt;li&gt;.csstransitions #content p {&lt;/li&gt;
&lt;li class="ind-1"&gt;-webkit-transition: &lt;span class="kw"&gt;opacity&lt;/span&gt; 0.6s &lt;span class="kw"&gt;ease;&lt;/span&gt;
&lt;/li&gt;
&lt;li class="ind-1"&gt;-moz-transition: &lt;span class="kw"&gt;opacity&lt;/span&gt; 0.6s &lt;span class="kw"&gt;ease;&lt;/span&gt;
&lt;/li&gt;
&lt;li class="ind-1"&gt;-o-transition: &lt;span class="kw"&gt;opacity&lt;/span&gt; 0.6s &lt;span class="kw"&gt;ease;&lt;/span&gt;
&lt;/li&gt;
&lt;li&gt;}&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You’ll notice the &lt;code&gt;.csstransitions&lt;/code&gt; rule will only be applied to browsers that support it, leaving others to simply toggle opacity. Now let’s look at the JS which handles the loading class and the jQuery fade for other browsers:&lt;/p&gt;

&lt;ol class="snippet"&gt;
&lt;li&gt;$(window).&lt;span class="kw"&gt;load&lt;/span&gt;(Site.didLoad);&lt;/li&gt;
&lt;li&gt;var Site = {&lt;/li&gt;
&lt;li class="ind-1"&gt; didLoad: &lt;span class="kw"&gt;function&lt;/span&gt;() {&lt;/li&gt;
&lt;li class="ind-2"&gt;
&lt;span class="kw"&gt;var&lt;/span&gt; $content = $(‘#content’);
&lt;/li&gt;
&lt;li class="ind-2"&gt;$content.removeClass(‘loading’);&lt;/li&gt;
&lt;li class="ind-2 com"&gt;// If the browser doesn’t support transitions use jQ to fade in&lt;/li&gt;
&lt;li class="ind-2"&gt;(!Modernizr.csstransitions) &lt;span class="kw"&gt;&amp;&amp;&lt;/span&gt; $content.hide().fadeIn(‘slow’);&lt;/li&gt;
&lt;li class="ind-1"&gt;}&lt;/li&gt;
&lt;li&gt;};&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;With that code in place, both sets of users will have &lt;code&gt;#content&lt;/code&gt; paragraph elements faded in with either transforms or jQuery. One might argue that it’s a little redundant to target your CSS this way (browsers that do not support new features usually just ignore the rules), but I think this approach is a lot more readable and easy to maintain—plus it helps you actively consider the experience of users with older browsers, rather than just setting and forgetting. Kudos to Paul and Faruk for the great script.&lt;/p&gt;

&lt;h3&gt;One last consideration&lt;/h3&gt;

&lt;p&gt;Since both of these approaches rely on JavaScript what if a user has it disabled? If we were to leave the CSS as-is all &lt;p&gt; elements would be hidden from the user. To account for this, I usually place a “no-js” class on the &lt;html&gt; element so I can apply specific CSS rules for users without JS. As a bonus, Modernizr changes this class to “js” automatically so you don’t have to.&lt;/p&gt;

&lt;ol class="snippet"&gt;
&lt;li class="com"&gt;&lt;— HTML —&gt;&lt;/li&gt;
&lt;li&gt;&lt;html class=”no-js”&gt;&lt;/li&gt;
&lt;li class="com"&gt;/* CSS */&lt;/li&gt;
&lt;li&gt;.no-js #content.loading p { &lt;span class="kw"&gt;opacity&lt;/span&gt;: 1 }&lt;/li&gt;
&lt;/ol&gt;</description><link>http://log.gravitywins.com/post/684794552</link><guid>http://log.gravitywins.com/post/684794552</guid><pubDate>Thu, 10 Jun 2010 17:31:00 -0400</pubDate></item><item><title>Can’t say I ever eat there, but an impressive win for the...</title><description>&lt;img src="http://27.media.tumblr.com/tumblr_l3cbpp1ZnW1qznigwo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Can’t say I ever eat there, but an impressive win for the internets: &lt;a href="http://www.buzzfeed.com/rebeccae/subway-finally-agrees-to-tessellate-cheese-nzp"&gt;Subway Finally Agrees to Tessellate Cheese&lt;/a&gt;&lt;/p&gt;</description><link>http://log.gravitywins.com/post/653467426</link><guid>http://log.gravitywins.com/post/653467426</guid><pubDate>Tue, 01 Jun 2010 10:46:36 -0400</pubDate></item><item><title>Carolina by Lady Danville</title><description>&lt;embed type="application/x-shockwave-flash" src="http://log.gravitywins.com/swf/audio_player.swf?audio_file=http://www.tumblr.com/audio_file/638374656/tumblr_l33g24TNi41qznigw&amp;color=FFFFFF" height="27" width="207" quality="best"&gt;&lt;/embed&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;strong&gt;Carolina&lt;/strong&gt; &lt;em&gt;by&lt;/em&gt; Lady Danville&lt;/p&gt;</description><link>http://log.gravitywins.com/post/638374656</link><guid>http://log.gravitywins.com/post/638374656</guid><pubDate>Thu, 27 May 2010 15:42:04 -0400</pubDate></item><item><title>Yulia Brodskaya makes elaborate typographic creations entirely...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_l25icmj0lT1qz4xx0o1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Yulia Brodskaya makes elaborate typographic creations entirely out of paper. She calls them &lt;a href="http://www.artyulia.com/index.php/Illustration/PAPERgraphic"&gt;PAPERgraphics&lt;/a&gt;&lt;/p&gt;</description><link>http://log.gravitywins.com/post/619342317</link><guid>http://log.gravitywins.com/post/619342317</guid><pubDate>Fri, 21 May 2010 10:53:00 -0400</pubDate></item><item><title>Marilyn /via theimpossiblecool</title><description>&lt;img src="http://27.media.tumblr.com/tumblr_l29fx6vnIZ1qzooxpo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Marilyn /via &lt;a href="http://theimpossiblecool.tumblr.com"&gt;theimpossiblecool&lt;/a&gt;&lt;/p&gt;</description><link>http://log.gravitywins.com/post/600493613</link><guid>http://log.gravitywins.com/post/600493613</guid><pubDate>Sat, 15 May 2010 05:57:33 -0400</pubDate></item><item><title>Such a brilliant compositional mind: Thelonious Monk - Round...</title><description>&lt;object width="400" height="325"&gt;&lt;param name="movie" value="http://www.youtube.com/v/OMmeNsmQaFw&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/OMmeNsmQaFw&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" width="400" height="325" allowFullScreen="true" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Such a brilliant compositional mind: Thelonious Monk - Round About Midnight&lt;/p&gt;</description><link>http://log.gravitywins.com/post/598170443</link><guid>http://log.gravitywins.com/post/598170443</guid><pubDate>Fri, 14 May 2010 09:59:29 -0400</pubDate></item><item><title>Mads Berg, Illustrator /via ISO50</title><description>&lt;img src="http://30.media.tumblr.com/tumblr_l2exb0Hux81qznigwo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://www.madsberg.dk/"&gt;Mads Berg, Illustrator&lt;/a&gt; /via &lt;a href="http://blog.iso50.com/2010/05/13/mads-berg-illustration/"&gt;ISO50&lt;/a&gt;&lt;/p&gt;</description><link>http://log.gravitywins.com/post/598160085</link><guid>http://log.gravitywins.com/post/598160085</guid><pubDate>Fri, 14 May 2010 09:54:00 -0400</pubDate></item><item><title>Unbelievably realistic colored pencil drawings by Julia Randall.</title><description>&lt;img src="http://26.media.tumblr.com/tumblr_l209flnYR31qznigwo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Unbelievably realistic colored pencil drawings by &lt;a href="http://www.baileygallery.com/artists_02.cfm?fid=108"&gt;Julia Randall&lt;/a&gt;.&lt;/p&gt;</description><link>http://log.gravitywins.com/post/576414806</link><guid>http://log.gravitywins.com/post/576414806</guid><pubDate>Thu, 06 May 2010 11:52:32 -0400</pubDate></item><item><title>"Design is not about innovation. Design is about communication. Innovation in design is usually a..."</title><description>“Design is not about innovation. Design is about communication. Innovation in design is usually a wonderful byproduct or direct result of a particular need. Design that seeks to foremost be innovative will commonly fall apart under its own stylistic girth.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://quotesondesign.com/jason-santa-maria/"&gt;Jason Santa Maria | Quotes on Design&lt;/a&gt; (via &lt;a href="http://owltastic.tumblr.com/" class="tumblr_blog"&gt;owltastic&lt;/a&gt;)&lt;/em&gt;</description><link>http://log.gravitywins.com/post/573794839</link><guid>http://log.gravitywins.com/post/573794839</guid><pubDate>Wed, 05 May 2010 12:15:14 -0400</pubDate></item><item><title>Champion by Kristen Wiig (MacGruber Soundtrack)</title><description>&lt;embed type="application/x-shockwave-flash" src="http://log.gravitywins.com/swf/audio_player.swf?audio_file=http://www.tumblr.com/audio_file/573496413/tumblr_l1y7x5ljEG1qznigw&amp;color=FFFFFF" height="27" width="207" quality="best"&gt;&lt;/embed&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;strong&gt;Champion&lt;/strong&gt; &lt;em&gt;by&lt;/em&gt; Kristen Wiig (MacGruber Soundtrack)&lt;/p&gt;</description><link>http://log.gravitywins.com/post/573496413</link><guid>http://log.gravitywins.com/post/573496413</guid><pubDate>Wed, 05 May 2010 09:24:40 -0400</pubDate></item><item><title>Jeremy Keith’s HTML5 for Web Designers looks...</title><description>&lt;img src="http://27.media.tumblr.com/tumblr_l1ws8uFyd51qz7ywoo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Jeremy Keith’s &lt;a href="http://books.alistapart.com/product/html5-for-web-designers"&gt;HTML5 for Web Designers&lt;/a&gt; looks fantastic—instant preorder. I’m a big fan of &lt;a href="http://jasonsantamaria.com"&gt;Stan’s&lt;/a&gt; design for the book as well. You know it’s successful both as an individual design and a visual system when my first thought is “I can’t wait to have a full shelf of ABA books.”&lt;/p&gt;</description><link>http://log.gravitywins.com/post/571695197</link><guid>http://log.gravitywins.com/post/571695197</guid><pubDate>Tue, 04 May 2010 17:24:06 -0400</pubDate></item><item><title>Gravité by Renaud Hallée. Falling objects timed to create...</title><description>&lt;object type="application/x-shockwave-flash" width="400" height="225" data="http://vimeo.com/moogaloop.swf?clip_id=6111739&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF"&gt;&lt;param name="quality" value="best" /&gt;&lt;param name="allowscriptaccess" value="always" /&gt;&lt;param name="allowfullscreen" value="true" /&gt;&lt;param name="scale" value="showAll" /&gt;&lt;param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=6111739&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF" /&gt;&lt;embed src="http://www.vimeo.com/moogaloop.swf?clip_id=6111739&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Gravité by Renaud Hallée. Falling objects timed to create rhythm.&lt;/p&gt;</description><link>http://log.gravitywins.com/post/571040801</link><guid>http://log.gravitywins.com/post/571040801</guid><pubDate>Tue, 04 May 2010 11:25:12 -0400</pubDate></item><item><title>Ego Is by Mobley</title><description>&lt;embed type="application/x-shockwave-flash" src="http://log.gravitywins.com/swf/audio_player.swf?audio_file=http://www.tumblr.com/audio_file/568626408/tumblr_l1uuk7Kxwm1qznigw&amp;color=FFFFFF" height="27" width="207" quality="best"&gt;&lt;/embed&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;strong&gt;Ego Is&lt;/strong&gt; &lt;em&gt;by&lt;/em&gt; Mobley&lt;/p&gt;</description><link>http://log.gravitywins.com/post/568626408</link><guid>http://log.gravitywins.com/post/568626408</guid><pubDate>Mon, 03 May 2010 13:43:19 -0400</pubDate></item></channel></rss>
