Tag: jQuery

Compare before and after photos using CSS Clip and jQuery

UPDATE: Turns out this has already been done! Oh well, I still had fun with it.

Last night I followed a link from Reddit to The Berlin Wall: 20 Years Later on the New York Times site. It was an interesting feature, but I thought that the use of Flash to display the before and after photos was a little bit gratuitous, especially considering that they could make the content accessible to a wider range of user agents (mobile browsers and Google image search come to mind) by using CSS and Javascript.

Read more »

jQuery Slug Plugin

I’ve had a snippet of jQuery and javascript kicking around for a while, that I have found handy in the past for generating post slugs. Finally I’ve packaged it as a plugin to share: jQuery Slug Plugin.

This is my first jQuery plugin, so it doesn’t follow the more advanced plugin development pattern by Mike Alsup, instead I followed a more rudimentary plugin authoring tutorial.

Here’s an explanation of the plugin, and examples of its usage.