Okay, so it’s instructions for Motion.page, but they’re both using GSAP, right?
I have set up all the blocks properly I think. Everything seems to be working, but it’s not working properly. If I use just pixel values, it moves horizontally as an animation, but I’m looking for it to scroll along as the user scrolls. Here’s a little video of what I’m experiencing:
Anyone in this “How to” section good enough with GSAP to help me figure this one out?
Hi I’m on the way and not watching your video. But it seems that „Use Scrub“ will solve your problem. Also you need to pin your section with „Use Pin“. Just leave the pin selector empty. It will be set just to true then.
So, I set it to scrub, and now it’s animating on the scroll! We’re half-way there!
But still the Animation Object - {x: -200%} is resulting in no animation. I want to scroll through 3 different sections a 100vh. It only animates when there’s no “%” symbol in there - a pixel value. I need it to scroll past all 3 sections.
Also, as I’m scrolling, it continues on down, but I need it to stick all of the sections at 100vh, scroll along to the right and then scroll on down to section 4 vertically after it has passed the 3rd colored section.
I learned that I should set “Toggle Actions” to “restart none none none” and now it will go backwards. But the bounce is really heavy. I’ll have to figure out how to smooth it out.
And the “Pin” that I’m using is on the scroll bar on the top of it:
[image]
FYI, I’m hoping that this post serves people who search “horizontal scroll” in the forum in the future. If this helped you, throw a like or a comment on it. Tell us if you’re still having problems. Future me help you in the future after I understand this. LOL.
{x: -200%} is not a valid javascript object. For non numeric values, you need to wrap your value with quotes.
So your object should be: {x: "-200%"}. Or just use the gsap key “xPercent”: {xPercent: -200}. This will do the same.
Also I notify that you don’t seem to use Scrub for your animation. When using scrub and PIN, you should adjust the “Animation End” value on the Scroll Trigger options to adjust the speed of your animation. “+=500” will run it faster than “+=5000”.
PS: For “Scrub” you don’t need to setup Toggle Actions.
How cool, thanks a ton to @Revere and @Daniele – that is something I also need and wanted to be able to. I love Bricksforge for the skills, the support, the speed of development and the forum. I am a huge fan.
Hi @Revere did you get any luck? even a short video of where you are and how you got there would be super helpful/useful to get started, would have no clue where to start with this!
@Daniele would you consider doing a tutorial for a horizontal scroll section (ie section locks when scrolling down on the page to that section, then it scrolls horizontally until the end then the site continues scrolling down) ?
Sorry, I’ve gotten loaded down with work and that’s one I just haven’t been able to get to. I haven’t gotten it where I need it to be to the point where I could make a video.
Hopefully @Daniele will be making us a horizontal scroll video soon, huh?
Hi @Revere and @Daniele im aware you guys arent there yet, but im looking at trying to do this (im useless at java. @Revere is there any chance of getting what you did? i dont need the scroll bar, just need the damn section to lock while scrolling.