Robert May

  • Content Count

  • Joined

  • Last visited

Everything posted by Robert May

  1. Robert May

    Get a timeline with Javascript

    Hi! Is there a way to get a timeline with Javascript, something like getElementById? I have multiple timelines that are synced with audio and I need to change timelines when I change the audio files. Thanks
  2. Robert May

    Get a timeline with Javascript

    Thanks for the reply Shaun. The problem may be that I'm using a text variable "currentTimeline" + "Tl". This gets the name of the timeline and the console logs as "slde1Tl" as it should, but getElementById returns tempTimeline as "null". console.log(currentTimeline + "Tl") var tempTimeline = document.getElementById(currentTimeline + "Tl") tempTimeline.pause();
  3. Robert May

    Mouse Pad Zoom Not Working

    Thank you so much Jack, it was the mouse pad itself. The scroll function on the mouse pad is on the far right side of the pad. Thanks again for your reply.
  4. Robert May

    Mouse Pad Zoom Not Working

    The code below works flawless on my Dell Windows10 computer. I can use my mouse roller wheel or the mouse pad with no issues. The problem is with the techs laptops that I'm training, they use a Windows10 Dell rugged laptop and they don't use a mouse. Any ideas on why the mouse pad will not work on those laptops? Mouse pad will zoom in other programs our techs use. Thanks in advance. function zoomSchematic(e){ e.preventDefault(); switch(e.detail>0) { case true: if(scaleUp > .5 ){ scaleUp = scaleUp - .1;, .5, {scaleX:scaleUp, scaleY:scaleUp, transformOrigin: "50% 50%", ease: Power0.easeNone}); } break; case false: scaleUp = scaleUp + .1;, .5, {scaleX:scaleUp, scaleY:scaleUp, transformOrigin: "50% 50%", ease: Power0.easeNone}); break; } }
  5. Trying to modify osublake's Bezier Connector pen to put draggable circles and line inside of a very large external svg file. I can't duplicate this on CodePen for some reason but on my computer, when I drag the circles, the line follows but it leaves a huge gap between the circles and the line. I've tried everything I can think of, any help would be greatly appreciated. Thanks!
  6. Robert May

    Modification of OsuBlake's Bezier Connector

    Solved the issue with: var path = document.querySelector(".path"); var redDotXPos = redDot.getBBox().x + redDot.getBBox().width/2; var redDotYPos = redDot.getBBox().y + redDot.getBBox().height/2; var blueDotXPos = blueDot.getBBox().x + blueDot.getBBox().width/2; var blueDotYPos = blueDot.getBBox().y + blueDot.getBBox().height/2; TweenLite.set(path, { x:redDotXPos , y:redDotYPos}); Great product, great forum.... thanks for all you do!
  7. Robert May

    Jump To Labels

    Hi all. Is there a tutorial on how to use labels so that I can test my animations without having to wait for the whole animation to get to the part I'm testing? I think I remember Carl talking about it in one of his videos but I cannot find it. Thanks!
  8. Robert May

    Jump To Labels

    Thanks for your response, I've been playing with the code pen for a while. When I added ".add(pause)" to your code pen it would no longer tween from start to end or end to start, should that be a problem and if so, is there another way to pause the timeline without interfering with tweening the timeline?