Jump to content
Search Community

Poseidon

Premium
  • Posts

    7
  • Joined

  • Last visited

Posts posted by Poseidon

  1. 8 minutes ago, GreenSock said:

    Maybe this is what you want?

     

     

     

    You might be able to simplify things by just putting all your sliding animations into a single timeline rather than creating a whole different timeline and ScrollTrigger for every one. Then just scrub that one timeline across the whole thing. 

     

    Good luck!

     

    Thank you very much!!! Sorry for such stupid question, still learning JS and wasn't even aware of .slice()

  2. Hello everyone, trying to create a projects showing section using scrollTrigger demo code, if you check the attached pen, you'll see that first section is not visible until you scroll.

     

    Need some help making first section of projects appear automatically when top of .blocks reaches top of viewport (can't understand how to achieve it) 😕 any help appreciated.

    See the Pen PoemWpp?editors=0010 by thecodenaut (@thecodenaut) on CodePen

  3. Hello everyone, reading other people code I noticed this effect, it animates and fades the boxes towards top. My question is what "-=0.4" value at the end of this line does?

     

    gsap.to(".green", { duration: 0.6, ease: "power2.in", y: -100, opacity: 0, stagger: 0.05 }, "-=0.4");

     

  4. Thank you for speedy reply,

    That's exactly what I'm after

     

     

    It's definitely possible. I think this should replicate that (not really familiar with CSS animation, so hopefully it's at least close to what you are after - there are probably differences in the easing used):

    var foot = $('.foot');
    var tl = new TimelineMax({ delay:7, repeat:-1 });
    // if animation-delay occurs every time, add repeatDelay:7 to the TimelineMax object vars.
    
    tl.to(foot, 1, { rotation:"25_cw", transformOrigin:"right top", ease:Power1.easeInOut });
    tl.to(foot, 1, { rotation:"0_ccw", transformOrigin:"right top", ease:Power1.easeInOut });
  5. Hello everyone, is the following animation possible with TweenLite?

    .foot {
        width: 50px;
        height: 50px;
        animation-name: tap-foot;
        animation-duration: 2s;
        animation-iteration-count: infinite;
        animation-delay: 7s;
        transform-origin: right top;
    }
    
    @keyframes tap-foot {
        0% {
            transform: rotate(0deg);
        }
        50% {
            transform: rotate(25deg);
        }
        100% {
            transform: rotate(0deg);
        }
    }
    
×
×
  • Create New...