Does anyone have an example of an event that's triggered each time an array is increased by a new element ? (e.g. i++ when new element in array)
Marc Krenn maybe ?
Hey Stan,Maybe there is another event to listen to - for instance the same function or event that adds stuff to the array - to call your function? If you don't get what I mean, please share your file (or an abstraction of it) with us!
Btw it IS possible to listen to array changes directly:http://stackoverflow.com/a/5100420
Here's an example for one of the options, Array.observe:http://share.framerjs.com/ifu572i7x2rw/
(currently only supported by Chrome, Chrome for Android and Opera)
Thanks Marc ! You can see my file attached.
I’d like to automatise the last part so that for each page of the deck, I have a dark layer covering progressively the card as the audio time passes.
One way I tried to do this was to the array topOfScreen contain only the card currently showing on screen, and I wanted to put a trigger on this array so whenever a new card goes in, the dark layer is applied to it.
Keep in mind I’m new to both Coffeescript and Framer, so that must seem pretty messy to you.Let me know your thoughts !
I just skimmed over your code and some things don't seem right to me at first glance (reversed order of arrays and such). As I'm pretty busy today I couldn't make your file work but I've made some changes between line 262 and 279 that should get you started: http://share.framerjs.com/7g8hmp4oisqe/
That's great ! Thanks a lot for taking your time on this, you rock !!