pravSab
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by pravSab
-
-
On 10/3/2021 at 9:30 AM, GreenSock said:
There's an explanation in the docs about this.
I find it easiest to visualize it like this: turn markers on for your ScrollTrigger. Now look at where the "start" and “end” values are - it must squish/stretch the timeline to fit inbetween there perfectly. So let's say your ScrollTrigger's end is 500px below the start and you've got 5 seconds worth of tweens in your timeline - if you just change the durations of the tweens to be 100 times what they were before (SUPER long), it doesn't matter because it still has to move the playhead from the start to the end within 500px.
See what I mean?
So if you want it to last longer, all you need to do is push your "end" further down on the page. Right now, you've got
end: "+=100%"
which is basically the height of the viewport. Try something like this:end: "+=5000"
Woudn't this create a lot of space if I'm pinning an element and pinSpacing is true, how to avoid pinSpacing in this case ?
if I make pinSpacing false the component scroll is overlapping with its below elements, need your help on this. Thanks @GreenSock
-
-
On 9/15/2020 at 6:58 PM, ZachSaucier said:
"(min-width: 768px) and (max-width: 1023px)"
What if We want to do for landscape or portrait mode in the above , will it work if I add like below @Zach
Quote"(min-width: 768px) and (max-width: 1023px) and (orientation: landscape)"
-
On 3/14/2023 at 2:46 AM, Rodrigo said:
Perhaps you could check on Stackoverflow and see how to workaround this:
https://stackoverflow.com/questions/48399390/youtube-embed-autoplay-on-mobile
and also I am not able to click on the controls(play, pause seek) of the youtube in tablet or mobile, Do I need fix from animation end or youtube end I'm in dilemma, please throw some light if you are known to these issues.
-
Iframe not able to load youtube video or autoplay in mobile or tablet, not sure if I'm doing any thing wrong, it works fine in desktop.
Here is the CodePen for your reference, apologies I couldn't add the proper stylings in the code,
See the Pen LYBJMNM by Praveen_Saboji (@Praveen_Saboji) on CodePen
- For Tablet, Mobile I'm not able to pause or autoplay doesn't work even if I send autoPlay=1, Not sure why this is happening, please help in understanding if I'm missing anything. Thanks. -
- How to scroll to only next element on mouse wheel and not to any other element ?
- how to scroll to specific element if I click from any random button from 1 - 5 ? (if I click from 1 - 5 or 5 - 1 incrementally it works fine but not with random button click)
- how to avoid dragging effect when I scroll in snap scrolling ?
- do you have any such examples where based on main div scroll, it's children is in sync ?
See the Pen LYBJMNM by Praveen_Saboji (@Praveen_Saboji) on CodePen
control animation speed with scrollTrigger scrub? versus duration?
in GSAP
Posted
@Cassie @GreenSock Thanks for the reply, however I am using 2 timelines with same pin value, as I need to implement the following scenarios
1. I need to scale out the image or video from starting to its final value - Timeline 1 with same pin value. - It's working perfectly ( imageTimelineAnimation in the below code)
2. The second timeline is for snap scrolling the other images / Videos while the component is pinned. - Timeline 2 - This also works. (snapScrollAnimation in the below code)
however the pinning is working and animation also plays smooth, but it's leaving large space at the bottom for desktop, tablet, mobile.
I am adding margin bottom to the main container to adjust the bottom spacing. but while doing snap scrolling until I reach the last element it never appears on the screen, I have given fixed height for the container as well but not helping. I want to make the next element of the container to be maintaining the exact bottom spacing which I want to but struggling to achieve that. Need your suggestion if you know anything I'm missing.
The elements I'm making animations are inside a grid container - FYI
I understand that it'll be tough to understand to provide any suggestions based on the explanation on this, but whatever I know I have posted here to seek help on this.
I would like to tell you that it's a really great package, you guys are Rockstars. Keep rocking.
This is my code for your reference, it's huge but it gives you overall picture of what I'm trying to do ( Starting Point InitializeAnimation )