I've tried many syntaxes with data-attributes and Javascript syntax in order to get the .affix-bottom class set for the affixed object when I scroll down, but it doesn't work. When I inspect the affixed element, the .affix class doesn't change into .affix-bottom when I reach the bottom of the page by scrolling down.
I've tried a lot of snippets inclluding those provided in the official documentation:
<div data-spy="affix" data-offset-top="60" data-offset-bottom="200">
...
</div>
====
$('#my-affix').affix({
offset: {
top: 100
, bottom: function () {
return (this.bottom = $('.footer').outerHeight(true))
}
}
})
Have I missed something?
THank's in advance.