How can call VAR jquery when see div that have this VAR

Viewed 19

I have some Jquery

I need do call the var called ServicesAnimation when I scroll to main div or section that have div called for example regtangle-blue.

how can do that ?

jQuery(document).ready(function() {
  var ServicesAnimation = anime.timeline().add({
    targets: ['.box-info', '.regtangle-blue .h2', '.regtangle-blue .h3', '.regtangle-blue .h4', '.services .serv-box', '.how-it-works .h2', '.how-it-works .h3', '.how-it-works .col-md-4'],
    translateY: [60, 0],
    translateZ: 0,
    opacity: [0, 1],
    duration: 1600,
    delay: anime.stagger(100)
  });
});
0 Answers
Related