Jump to content
Search Community

Reduce Section and element on scroll

MatteoNet test
Moderator Tag

Recommended Posts

Hi !

I would like a hand to start developing this section, I would be immensely grateful to you because I can't get out of it,
I have these sections and I would like scrolling to pin the #tg-course section and each , tg-panel reduce its height up to 100px and only the title remains with reduced font size, could you help me with some ideas? A thousand thanks

 

See the Pen WNYvVvd by MatteoNet (@MatteoNet) on CodePen

Link to comment
Share on other sites

Hi,

 

That doesn't really sound as something extremely easy and, while we appreciate that you created a minimal demo, your codepen's JS section is completely empty!

 

We don't have the time resources to create custom examples from scratch or debug complex logic issues for our users. If you want you can contact us for paid consulting or you or post in the Jobs & Freelance forum to find some help there.

 

Good luck with your project!

Happy Tweening!

Link to comment
Share on other sites

Thank you all again for your availability, for now I've managed to get this result, managing to resize the elements and keep them fixed, but I don't understand how to intervene on the content of the elements that remain visible, do you have any ideas? or examples you can study? Thanks always to everyone

 

 

Link to comment
Share on other sites

The contents of collapsed elements are not collapsed together with the container,
my goal is to shrink the title and make the other elements disappear on container shrink,
I apologize for my english

 

I have tried to give in css, overflow hidden, for deduce pin height i hav to set with gsap do reduce height?

Link to comment
Share on other sites

The best approach would probably be to set up the height in the CSS to be the smallest size by default, and then animate from the larger size.

Animating height is always a bit of a tricky beast though, if you search the forums you'll find a lot of threads and attempted solutions.

 

 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...