Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

payne199

ShockinglyGreen
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

2 Newbie

About payne199

  • Rank
    Newbie
  1. Thank you, gentlemen. Very helpful/educational.
  2. Hi. I created a simple SVG witch is nothing more than a black rectangle that covers the screen and a transparent circle in the middle. Its purpose is to give the appearance of zooming in/out on the image behind it, thereby blocking out the image except for what is seen through the transparent circle. The above code works fine when I am scaling up, then down, in one motion. However, when I am only wanting to scale down, to draw the circle to the center of the screen, the code behaves in a hap-hazard way. The black rectangle scales improperly. I have tried different approaches, like using opacity zero when scaling-up, then switching to opacity 1 to show the effect, but the result is always the same. If you uncomment the line of js code, you'll see what I am getting. Please have a look at my pen (my first, owing to the demo you provided :0) Note: the pen that is embedded is not running correctly. But does so when I paste the url into the browser. https://codepen.io/don199/pen/wbdgQv
  3. Wow! I got so much out of that. Thank you so much. (Great pen, too. I had to watch and listen to the end:)
  4. Hello. Newbie here. I am recreating the Star Wars opening crawl and was having great difficulty adding the opening theme within the timeline. I was getting 'in Promise' errors that I could not get around. I then decided to simply start the program with a button click and delay the timing of the audio to come in at the right time. The problem I am having is getting both the js audio function and GSAP timeline started at the same time. I tried onclick with the html button to call my audio function and used playBtn.onclick=function(){} to call my timeline on click of the same button, but I get nothing. No action. No errors. Could someone direct me as to how I should approach this? function myFunction(){ document.querySelector('#play').play(); } let tl = new TimelineLite(); tl .to(document.querySelector('#openingText'), 1,{opacity: 1, delay: 2}) .to(document.querySelector('#openingText'), 2,{opacity: 0, delay: 4}) .to(document.querySelector('.starryBackground'), 0,{opacity: 1}) .to(document.querySelector('#date'), 0,{opacity: 1, scale: 0.9, delay:0.5},'-=0.5') .to(document.querySelector('#date'), 13,{scale: 0, ease:Power3.easeOut}) .to(document.querySelector('.crawl'), 140, {css:{top:-2600}, ease:Linear.easeNone },'-=5')
×