DEV Community

Discussion on: Horizontal Scrolling Animation using GSAP and ScrollTrigger.

Collapse
 
mooh07 profile image
Tetbirt Mohamed Hassene

not sure if you need this advice after almost a year but when writing blogs you are trying to explain stuff to people, stuff they aren't comfortable with, try to make variable names more friendly so the reader can understand clearly your logic, or even better explain each part of the code and what it does, for example you can assume a reader is new to gsap and just state that, first argument is the object to be animated, second is the initial start position and third is the to position.

It might be clear to you but someone new might find this daunting.