This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Casey Callow
Posted Jan 17 - Read on Facebook

Are there any resources for learning how to use 'for' loops to increase productivity when applying states/styles/animations to multiple elements? It seems like looping is the most powerful ways to reduce code size and prototype faster but I can't find a lot of examples or holistic explanations of the syntax. Thanks!

5 Comments

Arun Venkatesan

Try some basic coding resources. Loops are a basic concept that apply anywhere.

Marc Krenn

Here's an example I've posted yesterday:
http://share.framerjs.com/3woxywmi8t5o/

If you have any questions feel free to ask! :)

Marc Krenn

Here's another, a bit more advanced example:
http://share.framerjs.com/qs20f8qcspa7/

Read the entire post on Facebook