Comments (6)
You can change the CSS class on line 15.
from pushy.
I’ve added this functionality in a new branch with the ability to set the menu-btn class via a new data attribute.
Check out the modified demo.html for an example of a custom menu-btn CSS class defined.
It still needs to be tested but this should solve your issue.
from pushy.
Thanks.
Any plan for add options via JS? I would open a PR if you are agree.
from pushy.
What's your use case for changing the class for toggling the menu?
from pushy.
Duplicated class name in my codebase and class naming inconsistency for example.
from pushy.
Great! thanks.
from pushy.
Related Issues (20)
- Pushy in NPM packages. HOT 2
- Menu don't work with vue js 2 HOT 1
- iOS Mobile Container Scrolling Bug
- Third level submenu HOT 1
- Menu transitions on page load HOT 2
- Can width be set to 100% HOT 2
- Can I have a left menu and right menu? HOT 1
- Rearrange menu items for desktop HOT 3
- Fit Pushy for container width. HOT 1
- How can we stop the container scroll going to top, while we are opening Pushy-Menu HOT 1
- sidebar incompatible with jquery 3.1.1 HOT 1
- BS4 Dropdown Class for On-Canvas Multi-Line Menu HOT 1
- Error don't appear the pushy menu HOT 1
- Desktop: Close '.pushy ul ul ' when clicking away from element
- Menu shows when loading page HOT 1
- Mobile Site Menu is not loading properly HOT 2
- Save a network request by encoding the arrow svg in the css instead of externally linking it HOT 1
- How to focus on a li tag within a submenu? HOT 3
- Multiple Pushy in one page
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 pushy.