0

I can't access my array in a for loop - Why? Thanks in advance.

I want to play a state animation for my "PageDowns" elements.

enter image description here

Sorry, I couldn't paste the code, because CodeSample here didn't work for me.

1zz0
  • 264
  • 3
  • 18

1 Answers1

0

Got it on my own.

It was a scope problem. CoffeeScript is not easy to handle when it comes to arrays, loops and so on.

I had to write:

do(pageDown)
   PageDowns[i].animate "swipe"
1zz0
  • 264
  • 3
  • 18
  • You can read more about scope here: https://framer.com/getstarted/guides/programming/#scope – Niels Oct 10 '17 at 15:24