HTML5 Mobile Development Road (1)--jqmobi in side menu implementation (like Renren)

Source: Internet
Author: User

Remember in the past when doing native app is similar to Renren side sliding effect is very hot, a lot of apps modeled on the effect of development, in Jqmobi also have a similar effect is called side menu. Let's step through the effect.

First create a new HTML file, introduce the Jqmobi framework, as follows:

Next, add a panel as follows

Next we'll add a <nav> under the Panel Peer tab


Next we'll add a panel and add headers and footer

Zhengzhou Male Hospital

We will find that at this point the two panel corresponding to the side menu is the same, below we specify a side menu for each panel



We will find that side menu belongs to the Panel, each panel can assign itself a side menu, or a side menu can be shared.

Now the biggest problem is how to make the above side menu has left and right sliding effect, the introduction of the following JS can be achieved


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.