Monday, November 12, 2012

Sliding Divs to Mimic Smart Phone Navigation

I had a need today for a UI control that would slide from one div to another, and then back to the first.  It turns out that jQuery UI makes this possible in a few lines of jQuery.  See the fiddle here.  Just click on the div.  It will slide to div 2, click again, back to div 1.   This mimics the behavior you often see on smart phones and tablets.

No comments:

Post a Comment