Jump to content
GreenSock

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

artyor

Members
  • Content Count

    16
  • Joined

  • Last visited

Community Reputation

0 Newbie

About artyor

  • Rank
    Member

Recent Profile Visitors

465 profile views
  1. Hi guys, I made a simple demo where Im trying to rotate 3 spans. My idea is that timeline overlaps, so it looks like one span is pushing other out, I tried this by using "-=1" after the first timeline is finished, but obviously it's not archiving wanted result. Is this even right direction to go with? I also dont want to make it fixed for 3 spans only, there might be more. Thanks in advance.
  2. So I added smartphone and tablet smooth true, but It doesn't work for me for some reason. (I also commented out the gsap pin which should be used when mobile/tablet smooth is disabled). It doesn't add smooth class to my HTML element either. Im not getting any errors, really werid
  3. I found the solution, sorry for spaming to forum: repeat: 5, repeatRefresh: true Did the job (Still would be cool if someone more experienced could confirm this)
  4. Hi all, I want to move .box by 100px for each repeat, but the tween always restarts. There is commented version which I adapted from other codepen Zach helped me with, but I don't think that's the right way of doing it
  5. If you removed it, I wouldn't be so happy that I figured it on my own haha (still only learning js). I think your codepen works like charm, just tested it. Thank you, I will let you know otherwise.
  6. Yes like that! I think, I will test it right away. But I don't need count and onRepeat anymore, that you left in pen?
  7. Hi Zach, Well, not exactly that, I don't want init(); to run after 2 full repeats, but after 3rd ".to" of timeline running 1st time, So basically, if page has loaded & if my timeline is finished 3 ".to" out of 4 (on first run)... I'm not sure if that's clear enough? Maybe Im using wrong words, but you're codepen is still very useful to learn how onRepeat can be used.
  8. Hi guys, I have basic codepen where I have "loader" animation, which i want to animate out with code, once my page is loaded. So I used window.addEventListener('load', (){ init(); }) In case my page loads before my loader animation finished atleast 3 steps, I still want them to play out before init() runs... I tried using onComplete on 3rd .to of my loader timeline and adding fnc() (which was wrapper for window.addEventListener), but it didn't work...I assume it's because that's not have event listeners work... is there any way I can archive this?
  9. Thank you for another example! I was referencing video from this thread
  10. Hi Zach, thank you for responding. When I did search on forum I found immediateRender, but video tutorial said it's used only in from or fromTo, so I didn't even try to use it. Thanks, this will sort my problem! I will also take a look into onComplete option as it seems the best practice scenario, but also a bit more advance. Thank you again.
  11. Hi all, In this codepen I first use gsap.set to set .line element outside of .box (with yPercent), then I tween it with .to, and after that I use scroll trigger. In all 3 cases I manipulate yPercent. But scrollTrigger doesn't keep going from gsap.to, it resets itself to gsap.set and then it animates. I want scrollTrigger to animate .line starting from position that's been set with gsap.to. How can I acomplish this? (Not sure if it's worth to note that in my non-codepen example I use load event listener to to tween after page is loaded)
  12. Hello, I went through greensock forum to find solution for smooth scrolling, and it was mostly Blake's codepen solution which pretty much worked as I want, however I was wondering would they work with scrollmagic? What exactly I mean is, I want to trigger gsap animations on element when they scroll into view, and for this I use scrollmagic. I was wondering if there will be problem with this since I read somewhere that this is just transform (which I saw with inspect element), and since it's not "real scroll" scrollmagic wont read it and trigger it when it should? This are
  13. @PointC Hey mate, that's exactly what I needed! I will only replace tlbox.pause with .reverse. I have been playing with on enter and on leave but couldn't figure it out alone. Thank you again
  14. @PointC Thanks for your time! And sorry for bothering too much about something that is not gsap directly. Really couldnt find anything on net.
  15. @PointC Hello, thanks for answering. I do want to animate same properties when I enter the view port, either from scroll up or scroll down, that's the problem. But I dont care how will they be animated out when exiting the viewport as I wont see it or will only see small part of it. I also dont need them to be necessary animated when exiting the viewport, but just them to reset to orginal position so animation works when scrolling up. I wish the orginal animation when scrolling down also plays when scrolling up. This can get alot tricky when animating a lot of properties, codep
×