0.2.0 • Published 7 years ago
sos.js v0.2.0
SOS.js
Stick elements on page's scroll
// to search for all elements with "data-fos" attribute
SOS.discoverAll()
// to bind to an specific element
SOS.stickOnScroll(document.querySelector('#elmt'));
// to search for all elements with "data-fos" attribute
SOS.discoverAll()
// to bind to an specific element
SOS.stickOnScroll(document.querySelector('#elmt'));