treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Smooth mobile navigation sidebars

  • Hey there, I want to know how to build a sidebar which slides very smoothly on mobile devices for example Google's Mobile Search Site or the tablet optimized site of cultofmac.com have such a great sidebars. I actually use Jquery for those tasks, but slides in jquery aren't smooth at all :(

    Thanks in advance ;)

  • Personally, I think you're better off using CSS3 animation for this unless legacy browser support is a big issue. As they are integrated natively, they will perform better in the default browser than some JavaScript that has to take account of some many other circumstances.