Fiddle: http://jsfiddle.net/stefek99/0o15homy/
Demo: http://youtu.be/4XAKdwazxFo (less than a minute)
I've noticed couple of existing Affix issues, not sure if mine is a duplicate.
http://jsfiddle.net/0o15homy/1/ - here without bug, enjoy.
You have a data-offset-bottom attribute set.
From the documentation:
If a bottom offset is defined, scrolling past it should replace
.affixwith.affix-bottom. Since offsets are optional, setting one requires you to set the appropriate CSS. In this case, addposition: absolute;when necessary. The plugin uses the data attribute or JavaScript option to determine where to position the element from there.
That said, the docs could clarify this a bit better if data-offset-bottom is going to be set in the example code.
HMMM...
I was hoping that:
(I'll try to figure it out)
Yeah this plugin is a bit confusing – i really effed up on the api for this plugin, that's my bad.
Expect a better solution for v4
Punt on this until then @fat?
yep
I made a work around
$("[data-offset-top]").on("affixed.bs.affix",function () {
$(this).removeAttr("style");
});
Most helpful comment
I made a work around
http://jsfiddle.net/983vjtn8/2/