garand / sticky

jQuery Plugin for Sticky Objects
Other
3.3k stars 1.06k forks source link

className background? #122

Open AbbyJanke opened 10 years ago

AbbyJanke commented 10 years ago

Not sure if i'm missing something obvious but when using the className and setting a new background color in css it doesn't seem to be working?

<div id="menuBar" class="menuBar col-lg-12"">
</div>
$("#menuBar").sticky({
    topSpacing:53,
    className:'menuBarScroll',
    responsiveWidth: true
});
.menuBar {
    padding: 20px 0 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 10;
}

.menuBarScroll {
    background: #000;
}

If I change the color option in css it works no problem, but just not background? any thoughts?