1.0.1 • Published 7 years ago
scroll-change v1.0.1
scroll-change
Add or remove classes
based on a trigger when is scrolling
Init
const sc = new ScrollChange()
sc.init()
or with custom configuration
const sc = new ScrollChange({
elem: '.myId',
trigger: '#trigger',
classes: 'change animate yup',
endPoint: '#end',
})