0

I'm new to JS, and not too sure how viewports work. Is it possible to start a css3 animation when the user gets to the third anchor or to a certain section of this plugin? For example, if div #right3 comes into view, how can I start animations within that div?

abc0213
  • 167
  • 1
  • 1
  • 12

1 Answers1

0

There's an "afterLoad" callback that accepts anchorLink and index parameters. You could use that to append classes, triggering the animations.

See https://github.com/alvarotrigo/multiscroll.js#afterload-anchorlink-index

mark_c
  • 1,202
  • 1
  • 8
  • 10