Jump to content

Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Newbie

About PetarHolland

  • Rank
  1. Thank you for the nice welcome, and thanks for the help... The article was full of nice inspiration and resources 😊 Definitely a more clean and nice approach than mine! Just another info, what if instead of this, i would like to add a full timeline to manage more animation based on the click? togg.anim = gsap.to(icon_plus, { rotate: 45, duration: 1, ease: "elastic.inOut(1, 0.5)", paused: true }); Why togg.anim? And i just noticed, the animation just trigger once if i click multiple times on the same accordion! It's caused by the i index
  2. Hello guys, i need some help for a "simple" script that's driving me crazy... I've put an example on my code on codepen: https://codepen.io/SaverioGarzi/pen/wvMLYMJ The example is simulating the final results, but the code is messy, i would like to have a Timeline, instead of a simple tween, i have to add more feature with the click... The timeline should be play when i click on the accordion head, and reversing when i click again on the same accordion... But it shoud also reverse when i click on another accordion... I can't figure out the logic. This is what i'm