Jump to content
Search Community

tweeden36

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by tweeden36

  1. Hi, I am using the scrollToPlugin to scroll  text automatically when banner loads. I need the scroll to pause when mouse enters the area and resume when it leaves. I am a newbie that needs help. Like I said the text scrolls automatically when banner loads but when I mouseenter it doesn't pause. Here is a sample of the code that I am using to accomplish my goal. I used a console.log to make sure everything is firing but still the scrolling text doesn't pause on mouse enter. I hope someone can help me understand what I am doing wrong.

     

      <script>
     function init() {
      box.play();
    }
     
    var scroll = document.getElementById("box");
    var _scrollDuration = 160;
    var tl = new TimelineMax();
     
     
    tl.add(TweenLite.delayedCall(.5, startAutoScroll, [box, _scrollDuration]));
    scroll.addEventListener('mouseenter', function() {
      console.log('listening');
    tl.paused(!tl.paused());
    });
     
    scroll.addEventListener('mouseleave', function() {
      console.log('listening');
      tl.paused(!tl.paused());
    });
      </script>
  2. Hi,

    I am animating a html5 rich media banner ad that has repeat() and repeatDelay(). The duration of the banner is 15 sec with a repeat of 2 times. The issue I am having is the second time it starts it refreshes hard. Is there a way to make the second repeat come in softer?

    Can this be done? If not can the timeline be duplicated to run consecutively after each other to give the effect of a repeat? The total duration can be 45sec. I hope this makes sense and someone can help. Thank you.

×
×
  • Create New...