Jump to content
GreenSock

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

flim

Members
  • Posts

    20
  • Joined

  • Last visited

Profile Information

  • Gender
    Male

flim's Achievements

  1. Is there a randomize stagger available or I have to write my function if I want the elements to animate in random order?
  2. Hi OSUblake, Thanks for the advice, I shall read the doc more carefully. Here is my trial, if I change the zoom to 0.25x, the element 'b' will be at the end position, change the zoom to 1x the normal scroll animation resume. ScrollTrigger - reset & replay 2 (codepen.io) It is not perfect, the animation position will jump to the end if I resize the viewport which is large enough to make the element in the viewport. Any advice?
  3. I want the element to show in the animation "end" position when it is already on the screen, i.e. after page loaded. For instance, in the codepen, change the zoom to "0.25x", "b" will be visible, "b" will start to play just if I run the codepen again. How to make "b" start in the animation end position if it is visible already? Like when "b" is visible after page loaded, the tween duration is "0".
  4. In this codepen, the #box1 didn't animate, but #box2 works, any idea? And what is the setup if the div .animate is on the top the page, the animation play after the page load, and also play when the page down and the move up to the top?
  5. Thanks for the advise. I can get the gradient fading result with SVG. Here is the setup. https://codepen.io/fredericklim/pen/Badxezb
  6. I tried to add an animation for the gradient, not sure the setup is the right way or not, the png background will flash one time while playing the gradient animation.
  7. Many thanks for the links, very useful.
  8. Thanks for the docs link. But I not quit understand why need to include window, because if I remove window then the code will not work. In other examples there is no window before gsap.registerPlugin. const registerPlugin = gsap.registerPlugin; Also I cannot get the meaning of "..." in the line "...document.querySelectorAll(".apple-image--complete")" const COMPLETES = [ ...document.querySelectorAll(".apple-image--complete"), document.querySelector(".apple-image--complete"), ];
  9. Thanks for explaining that, those modern JS syntaxes are really like puzzle. But I don't understand why add window before the gsap.timeline etc.?
  10. In that CodePen, I cannot understand these few lines of code const { gsap: { timeline, set, registerPlugin }, ScrollTrigger, } = window What is the purpose of assign window to gsap, ScrollTrigger?
  11. Thanks for the detailed advice +1
  12. I saw some websites with smooth scroll video position control like Apple and Samsung, I tried to control the video but the result is very choppy, tried different size of video but the result is not desire. Any suggestion?
  13. I got desire result after added immediateRender: false in the 2nd tween. Thank you.
  14. I want to setup two tween for the same element, in the codepen, the h1 set as gsap.from, the text fade in and move from right, then in next tween gsap.to I want the text scale up and fade out. The first tween seems work, but no effect in the second tween. Any idea? Thank you.
  15. I want to set the scroller-start position calculated by the height of header. GSAP ScrollTrigger.resize() (codepen.io) I am newbie in JS and GSAP, many thanks for your help
×