Comments (4)
same with me!
from stickup.
Also having this issue.
from stickup.
I am having the same issue. I've tried everything I can think of but when I set up the One-Pager function I loose the sticky header I want.
from stickup.
Hi, I have figured out what was my mistake in my case.
I didn't have included all the SECTIONs (or DIV if it's your case..) that I listed in my menu.
For example:
<ul class="nav navbar-nav">
<li class="menuItem active"><a href="#home">Home</a></li>
<li class="menuItem"><a href="#about">About</a></li>
<li class="menuItem"><a href="#work">Work</a></li>
<li class="menuItem"><a href="#contact">Contact</a></li>
</ul >
And then I'd just written:
<section id="home">
bla bla bla
</section>
<section id="about">
bla bla bla
</section>
<section id="contact">
bla bla bla
</section>
Note that i forgot to create the section #work after section #about ...
So I wrote it and the sticky menu worked fine!
***And in the script too, you have to check if you wrote all the section's #IDs
<script type="text/javascript">
jQuery(function($) {
$(document).ready( function() {
$('.navbar-wrapper').stickUp({
parts: {
0:'home',
1:'about',
2: 'work',
3: 'contact',
},
itemClass: 'menuItem',
itemHover: 'active',
topMargin: 'auto'
});
});
});
</script>
Hope this fixs your menu too!!
from stickup.
Related Issues (20)
- error in documentation
- Multiple stickUp elements
- Hello, can I release multiple Stickup on the basis of Stickup ?
- When using stickUp,a div which is behind the div that stickUped to will be added a margin-top style,causing a error in css
- Using this plugin with dynamic elements
- navbar not visible when navigated directly to a part of page
- isStuck is not removed HOT 4
- Stuck Element jumping from its container HOT 1
- vartop is undefined HOT 4
- Trigger events [enhancement]
- Two things to add... read this
- Seeing this error Uncaught ReferenceError: vartop is not defined HOT 6
- Uncaught TypeError
- stickUp2 released
- how stop fixed element at a certain point? HOT 5
- if `div.stuckMenu` next element is empty,`currentMarginT` is `NaN`
- Error jquery is not defined HOT 1
- stickUp在jquery3.2.1下不工作,目标menu包含top属性 HOT 1
- deactivate on mobile devices
- 最后一个导航对应的区域的高度不足一屏,无法选中的bug
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 stickup.