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

What is Framer? Join the Community
Return to index
Fran Pérez
Posted May 02 - Read on Facebook

Small tip:

Sometimes you need to access i from a function/event inside a loop, for those times wrapping the loop body in a self-invoking function that takes i as a parameter will do the trick:

do (i) ->

4 Comments

Jorn van Dijk

Clever!

Benjamin Den Boer

Sweet. Ran into this many times myself, was so happy to learn this trick from Koen too. :-)

Marc Krenn

Here's another handy "do" trick:

Joshua Tucker

You do(n't) say!

Read the entire post on Facebook