Jump to content
Search Community

deJardine

Premium
  • Posts

    5
  • Joined

  • Last visited

Posts posted by deJardine

  1. Thanks for the reply, I was trying to avoid pinning as had already seen that example and this effect is quite different to what I'm trying to achieve.

     

    Perhaps things could be easier if I was animating each item to a set height? That way a dedicated start and end marker could could be set with an offset value for each item (positioned with CSS and increasing each nth-of-type)

     

    What do you think?

     

     

  2. Hi GSAP team,

     

    I'm trying to animate an array of accordion elements on screen. As each accordion enters the viewport, I want it to animate to height:auto sequentially on scrub (no pinning)

     

    Each 'drawer' start point should be the end of the previous sibling element.

     

    The problem I'm running into is that the start and end triggers are not working as expected because of the initial closed height of each item on first load, so as a consequence of this all accordions open at the same time.

     

    Have tried running an 'update' after complete but had no luck with that, am I approaching this incorrectly? 

     

    Any ideas would be great, 

     

    Thanks

     

     

     

     

     

    See the Pen VwxNvrP by grafiknz (@grafiknz) on CodePen

×
×
  • Create New...