spencerotica
May 26th 2012
May 24th 2012 programming
May 24th 2012 Post has 1 notes.

Ahem.

So. Anyone know how to post code snippets?

May 24th 2012 Post has 1 notes.
design programming

Adventures in CSS: transition edition

On my (boring, staid, being uplifted) portfolio site, I use jQuery to handle hiding and showing all of the project summaries when you click a project’s thumbnail. Now, jQuery makes sliding elements up and down extremely easy, but it is silly to include the whole library for basically a couple of animations. After seeing a pure-CSS stopwatch, I was inspired to reconsider writing my whole website without any JavaScript. It was a crazy idea, but just crazy enough it might work.

Enter the :target pseudo-class. This selector enables you to style an element which has been targeted by clicking an anchor tag (e.g., when you click a superscript number in Wikipedia to jump to that footnote). A few turn of the mind-wheels later, and I realized that, combined with CSS transitions, this would be the key to life, liberty, and the pursuit of happyness. Or at very least the path to pure CSSdom.

And then came cold, bitter reality.

The basic idea is all well and good when you know the exact dimensions of the element, but transitioning to an arbitrary dimensions (e.g., height: 100%) is not yet implemented by major browsers. A workaround is mentioned in that thread (animate max-height instead), but this method has a significant drawback: the transition is animated as if the element is the largest it could be. In other words, if the transition duration is 500ms, height of the element is 400px, and max-height of the element is 2000px…the element will actually be shown in 100ms. 

Example on jsFiddle showing this breakdown

le sigh

May 21st 2012

Goodnight, Kristen Wiig.

law-order-food May 21st 2012 Post has 4 notes.
Via: Law & Order & Food

“In the criminal justice system, the people are represented by two separate yet equally important groups: the police, who investigate crime; and the district attorneys, who prosecute the offenders.” This is them eating lunch. 

lukeperson May 20th 2012 Post has 27 notes.
Via: illuspiration

lukeperson:

charlestheirishman:

* Asterisk Animation *: Cartoon (The Play?!?!?)

I’m not entirely sure what’s going on here….

Andrea Balency Trio - “El Desorden”, from Lover (2011).

nprfreshair May 17th 2012 Post has 223 notes.
Via: NPR Fresh Air
"There are some questions in life, the very speaking of which are their own undoing. Am I fired? Is this a date? Are you breaking up with me? Yes. No. Yes."

— David Rakoff in this weekend’s episode of This American Life, The Invisible Made Visible (via nprfreshair)

nprfreshair May 17th 2012 Post has 101 notes.
Via: NPR Fresh Air

nprfreshair:

Hello Fresh Air Tumblr followers. This American Life at the helm here. Juuuuust in case you missed it, thought we’d start things off with Mike Birbiglia’s new short film featuring Terry Gross, from our recent live show. It may explain why the Fresh Air folks are busy with other things…

sanctionedhit May 15th 2012 Post has 368 notes.
Via: Sanctioned Hit

sanctionedhit:

omg spencer - LOOK!!

I just came a little. #toosoon?

(Source: eatsleepdraw)

hammersley May 14th 2012 Post has 2686 notes.
Via: The Miscellaneous Tumbling of Mr Ben Hammersley

Sam Rockwell’s Confessions of a Dangerous Mind screen test (x)

lukeperson May 14th 2012 Post has 1917 notes.
Via: illuspiration

lukeperson:

Cheer up Jon Snow, it might never happen

nevver May 14th 2012 Post has 900 notes.
Via: this isn't happiness.
escapepod May 14th 2012 Post has 171959 notes.
Via: sugary philosophy