Home  >  Q&A  >  body text

javascript - How to implement a navigation menu that can slide left and right

Similar to http://m.hexun.com The light red navigation bar at the top can move smoothly left and right. This way you can put more menu items on the phone screen.

Is there any juery plug-in for this effect?

When I search for slide menu online, the website navigation comes out from the middle of the screen, which is not the effect I want.

習慣沉默習慣沉默2663 days ago821

reply all(2)I'll reply

  • 三叔

    三叔2017-07-05 11:05:37

    Write one yourself
    http://www.qdfuns.com/notes/2...

    reply
    0
  • ringa_lee

    ringa_lee2017-07-05 11:05:37

    Write it yourself, it’s very simple, the structure is similar to:

    <Package>

    <列表>
    <列表>
    <列表>
    <列表>

    </package>

    This format.
    The list items float, the wrapping element sets the width according to the size of the list, and then implements it through transform and mouse (touch) events

    reply
    0
  • Cancelreply