Thumbs Up to Layout #1150
Replies: 2 comments 3 replies
-
|
Hey! That's awesome to hear—the createLayout API can feel like magic when it works first try! Thanks for sharing your experience; testimonials like this help others discover the feature. Cheers to the anime.js team for making it so intuitive! |
Beta Was this translation helpful? Give feedback.
-
Thank you for sharing this ❤️ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Today I needed to change a gird element's style from align-self center to align-self end. I spent some time getting the current position of the element blah blah blah... my code sort of worked. Then I decided to try the "new" layout capability in anime.js.
A brief look at the docs and then I used createLayout with my own animateLayout function: "Surely this won't work?" Well, to my surprise, it worked first time, exactly the way I was hoping it would. I then added a spring and was pleasantly surprised that it continued to work well.
Congratulations on making something easy that I wasn't looking forward to handcoding.
Beta Was this translation helpful? Give feedback.
All reactions