Giter Site home page Giter Site logo

Comments (4)

mrkhyns avatar mrkhyns commented on August 11, 2024

You can use the beforeOpen and beforeClose options. Inside each option you can apply css to your fixed navbar to slide it with the content panel.

Example (when using the animated:true option):
$('#your-navbar').animate({left: '250'}, 150)

Example (when using the animated:false option):
$('#your-navbar').css('left','250px')

And then put this into the beforeClose option:
$('#your-navbar').animate({left: '0'}, 150)

Notes:

  1. "150" is the default time for the sliding menu animation, so use that unless you've changed the default.
  2. "250" is the default side-menu width.

from jpanelmenu.

3nki avatar 3nki commented on August 11, 2024

yea i ended up with something like that. i couldn't use animated as it seems to leave the background overlay there or something, it was messing with some of the other dynamic stuff we've got going on the page. aside from that it worked great for just one panel/menu. however, i tried for a while to get two "drawers" animating, one from each side, but couldn't get it working well. eventually i switched to Sidr for that reason, and it works quite well.

from jpanelmenu.

RyanGladstone avatar RyanGladstone commented on August 11, 2024

Thanks for your response, mrhyns. That solved a problem I was having.

from jpanelmenu.

acolangelo avatar acolangelo commented on August 11, 2024

As an update: fixed positioning support has been dropped in the latest version of the plugin, because of conflicts between CSS Transforms and fixed positioning (see changelog for more details). If you need to support fixed elements, use the legacy version of the plugin in the root of this repo.

from jpanelmenu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.