Comments (3)
If I understand you correctly you just need to change the .pure-drawer class from 'position:fixed' to 'position:absolute'. Then the drawer will scroll with the rest of the page.
If you just want the drawer to scroll while leaving the rest of the page just add 'overflow-y:auto' to the .pure-drawer class.
Do you use the sass or css version of pure-drawer? I will look into adding some settings which will let you control this in the next version.
from pure-drawer.
Oh, thanks for the tip. I have only tested so far but would use the css version until I learn more about sass. I am concerned about browser support and may wait for the mentioned js addition which I assume would provide fallback. However, this would be a mobile only menu for me, which may cover more users than I'm guessing since smart phones wouldn't have ancient browsers? I will have to look into that as well.
from pure-drawer.
Most smart phones have modern browsers that support the css used in this project. At least the more popular brands like android, ios and windows phone. I'm not sure when I will release a javascript enhanced version yet so maybe https://github.com/jakiestfu/Snap.js/ can be an alternative for you?
from pure-drawer.
Related Issues (20)
- Do not put node_modules in repo HOT 2
- Missing closing tag in your index.html page
- Menu breaks parallax images HOT 5
- preventing the "pure-pusher-container" contents to scroll up when clicked on the menu HOT 2
- managing open / close state when main page is clicked to close the menu HOT 1
- strategy to cut down on the large CSS file HOT 1
- Operator issue HOT 2
- Touch laggy on Chrome
- license please HOT 1
- $toggle-checked-color doesn't work HOT 2
- Slide/Push HOT 1
- If drawer is placed in iFrame, opening and closing the drawer scrolls the parent frame to the top
- Dist directory contains duplicate scss files HOT 1
- SCSS breakpoint error HOT 2
- menus are hiding in landscape mode as push-drawer isn't scrollable HOT 2
- Resize Icon? HOT 5
- Custom toggle? HOT 4
- Publish on NPM HOT 1
- Open Drawer with javascript?
- FEAT: Incremental Swiping Demo For Mobile (Doc Request)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pure-drawer.