jQuery for iPhone and iPad

Steve Jobs with iPad

Steve Jobs with iPad

Apple’s iPad and iPhone definitely revolutionized the web! for developers and designers it also changed the way how we make websites.

While reading Six Revision’s Designing Web Apps for the iPad, I came across a powerful  jQuery Plugin:

  • jQuery Swipe – This plugin uses Mobile Safari’s built in touch events to allow jQuery binding of swipe events to any DOM element. You can override the swipeLeft and swipeRight defaults functions to create your own custom process when the gesture is detected.You can use this plugin easily with the following code:
    <code>$('.swipe').swipe({
     swipeLeft: function() { $('#someDiv').fadeIn() },
     swipeRight: function() { $('#someDiv').fadeOut() },
    })</code>
    
This entry was posted in blog. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>