Jump to content

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


  • Content Count

  • Joined

  • Last visited

Community Reputation

2 Newbie

About erayner

  • Rank

Recent Profile Visitors

250 profile views
  1. Hi there, I am trying to create some sort of 'autoplay' with gsap. the background of each link should change automatically when the page loads - so after 2 seconds, go to the next link and make that active. But if you hover over a link, that link should be active and all others shouldn't be. And then if you move your mouse out of hover and no into another hover state, the autoplay should resume. I know, quite a mouthful. I have tried to implement it with stagger - but I think I need to be pointed in the right direction. Any help greatly appreciated. Thank you!
  2. 😮 guess i've been out of the banner game for longer than I thought! cheers guys!
  3. GSAP 3 has just been released a few days ago correct? just on time restrictions for this project but as soon as I have a bit of time, I will look into it! (been using gsap for about 2 years now, usually use it for banners) Thanks
  4. Ah cheers, that works much better. I have a loop which runs so that I can add the same class to many elements on the same page without having to specify which element is the correct to animate when you scroll. Essentially attempting to make reusable code for a wordpress site. ie.. $('.parallaxMoveUp').each(function(){ var parallaxMoveUp = TweenMax.to($(this), 1, {y: -50}); new ScrollMagic.Scene({ triggerElement: this, duration: '100%' }) .setTween(parallaxMoveUp) .addTo(controller) }); $('.parallaxMoveDown').each(function(){ var parallaxMoveDown = TweenMax.to($(this), 1, {y: 50}); new ScrollMagic.Scene({ triggerElement: this, duration: '100%' }) .setTween(parallaxMoveDown) .addTo(controller) }); $('.fadeInUp').each(function(){ var fadeInUp = TweenMax.to($(this), 1, {y: -50, opacity: 1}); new ScrollMagic.Scene({ triggerElement: this, reverse: false }) .setTween(fadeInUp) .addTo(controller) }); I think I was over complicating it for the stagger. Thanks for your help/time Zach Cheers
  5. Hey Jack, Thanks for your reply. I'm still not 100% sure that's the culprite because in the scrollmagic example, he gets it to work easy with a stagger. https://scrollmagic.io/examples/advanced/advanced_tweening.html <script> // build tween var tween = TweenMax.staggerFromTo(".animate4", 2, {left: 700}, {left: 0, ease: Back.easeOut}, 0.15); // build scene var scene = new ScrollMagic.Scene({triggerElement: "#trigger4", duration: 300}) .setTween(tween) .addIndicators({name: "staggering"}) // add indicators (requires plugin) .addTo(controller); </script> I have a feeling it's the .each loop.. maybe the tween should be outside of the loop? because otherwise I am writing TweenMax.staggerTo($(this), 1, {autoAlpha: 1}, 1) TweenMax.staggerTo($(this), 1, {autoAlpha: 1}, 1) TweenMax.staggerTo($(this), 1, {autoAlpha: 1}, 1) TweenMax.staggerTo($(this), 1, {autoAlpha: 1}, 1) And they are all firing at the same time possibly? what do you think about that? Cheers
  6. Hey! So I've created a sort of 'loop' layout where I can just add a class to and element and it will automatically create a sort of parallax effect (move up or down etc). However, for some reason, my staggerTo class is not working.. ie, all elements appear at the same time on scroll. $('.staggerEntry').each(function(){ var staggerEntry = TweenMax.staggerTo($(this), 1, {opacity: 1}, 0.2); new ScrollMagic.Scene({ triggerElement: this, reverse: false }) .setTween(staggerEntry) .addIndicators(true) .addTo(controller) }); Please take a look at my codepen - you can see what I mean. I have a feeling it has something to do with the loop, but I can't tell. Cheers
  7. If you wanted to see - here's the completed live project http://www.makeitbigger.beansandrice.co.nz/ Thanks for your help guys!
  8. I have updated my pen above.. Here's another link to it. https://codepen.io/erayner/pen/zYxrmQM You can drag any image (not svg) into the pen and it will upload that image. My problem now is making the new logo start and not zoom in on the first click. Any ideas?
  9. Wow I had no idea I could use functions like that ? Must look into GSAP 3. Thanks!
  10. Hi there, I am trying to create a 'pop' animation. When the logo scales to it's fullest (11 clicks) it disappears and in it's place (from the center of the logo) comes lots of tiny logos that 'explode' outwards in random directions. The problem I am having mostly is to do with the randomness. As you can see by my pen, I have gotten it so that after 11 clicks the main logo which scales disappears and the other logos are appended to the container. Help is greatly appreciated!
  11. Hey I just figured out how to do it, sorry Thanks again guys!
  12. Hey @OSUblake I was wondering if you knew of anyway to adding a front and back to those leaves! like one side could be darker color or something I tried adding Div.innerHTML = '<div class="flip-card-inner"><div class="flip-card-front"></div><div class="flip-card-back"></div></div>'; to the loop, and this dot{width:10px;height:10px;position:absolute;z-index: 300;background-color: transparent;} .flip-card-inner {position: relative;width: 100%;height: 100%;text-align: center;transition: transform 0.8s;transform-style: preserve-3d;} .dot .flip-card-front{position: absolute;width: 100%;height: 100%;backface-visibility: hidden;background: url(confetti.png);background-size: 100% 100%;background-color: red;} .dot .flip-card-back{position: absolute;width: 100%;height: 100%;backface-visibility: hidden;background: url(confetti-3.png);background-size: 100% 100%;background-color: black;transform: rotateY(180deg);} #confetti {width:300px; height:250px;z-index: 300;position: absolute; opacity: 0;} to the css to make a front and back but no luck something like this re: flip card https://codepen.io/anon/pen/cdFKH https://www.w3schools.com/howto/howto_css_flip_card.asp cheers