Closed tenghuanhe closed 8 years ago
Sometimes people want to change the sticky bars' background-color when scrolling to the top. $("#header").sticky({ topSpacing: 0, backgroundColor: '#f8f8f8' }); exposed the backgroundColor api to sticky users.
$("#header").sticky({ topSpacing: 0, backgroundColor: '#f8f8f8' });
How is this different than .is-sticky #header { background-color: #f8f8f8; } in your stylesheet?
.is-sticky #header { background-color: #f8f8f8; }
@chesio , they are the same and yours is better, thanks and I'll close this PR.
Sometimes people want to change the sticky bars' background-color when scrolling to the top.
$("#header").sticky({ topSpacing: 0, backgroundColor: '#f8f8f8' });
exposed the backgroundColor api to sticky users.