reidb
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by reidb
-
-
Hello! I'm kind of stuck here and would appreciate any help you can give.
I'm trying to reuse this "squiggle" animation below each <h1> element on my page where the <h1> also acts as the trigger. I have only been successful by creating unique IDs for each occurrence (i.e. #squiggle-1, #squiggle-2, etc.). While it works, I'd really like help finding a "DRYer" method as it really bloats my js.
Thanks again for any help you can give!!
See the Pen mYJBjq by rtboudreau (@rtboudreau) on CodePen
Re-using animation multiple times on a page
in GSAP
Posted
hi @Shaun Gorneau & @PointC,
Thank you both! These are both far more elegant than what I was working with. I definitely appreciate the help and education!