December 15, 2005

CSS Spyglasses

Javascript and CSS can be combined to accomplish some pretty amazing things. Whether or not they're useful is a topic for another article. Today, however, I'd like to show you one of my favorite tricks. I call it the CSS Spyglass. (I wish I had a better name for it. Ideas?)

Here's a quick demo. Click the rabbit/tiger and then drag the small square around.

Click to see the example

Neat, eh? It's actually pretty easy to implement. But before we get to the code behind it, let me explain what's going on visually.

Continue reading "CSS Spyglasses"

Posted by tylerhall at 08:33 AM | Comments (2) | TrackBack