-
Posts
7 -
Joined
-
Last visited
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
ScrollTrigger Demos
Downloads
Posts posted by Poseidon
-
-
Updated the codepen
See the Pen PoemWpp by thecodenaut (@thecodenaut) on CodePen
Managed to almost resolve this using onEnter, however now looks like there is empty position created between first and second slide element... I am pretty sure I am doing something wrong, if someone could point me in right direction would be nice
-
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
-
Thank you!!!
31 minutes ago, mvaneijgen said:That is the position parameter.
It will do nothing in this case, because there is not a previous tween. `-=0.4` means it will start 0.4 seconds before the previous tween finishes, `+=0.4` would mean that it starts 0.4 seconds after the previous tween finishes.
Take a look at the learning page for a more in depth explanation and a lot more features.
-
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");
-
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 });
-
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); } }
ScrollTrigger show first section automatically
in GSAP
Posted
Thank you very much!!! Sorry for such stupid question, still learning JS and wasn't even aware of .slice()