Skip to content

Pixeden/scroll-change

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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',
})