A Permanent Wreck

This is a tumblelog, kinda like a blog but with short-form, mixed-media posts with stuff I like. Scroll down a bit to start reading, or a bit more to read more about me.

20th January 2012

Super hyperlink!

Use CSS transitions to link Media Queries and JavaScript – Paul Hayes

A com­mon prob­lem in respon­sive design is the link­ing of CSS3’s media queries and JavaScript. For instance on a larger screen we can restyle, but it might be use­ful to use JavaScript and pull in dif­fer­ent con­tent at the same time, e.g. higher qual­ity images. With CSS tran­si­tions, specif­i­cally their tran­si­tio­nEnd events, we can marry up our media queries and JavaScript per­fectly, with­out resort­ing to win­dow resize events.

About

This is my tumblog - a place for me to share the things I come across that intrigue, amuse and inspire me.

If you want to check out what I'm into A Permanent Wreck is my portfolio site. I'm also on Facebook and Twitter.

Search

Design by Marcus Olovsson  /  Powered by Tumblr  /  Here's the archive and a feed if you want.