Use data attributes to define the affix behaviour instead of javascript
Remove the affix behaviour from javascript
Update the stylings for the affix