Mithun Raikar Mithun Raikar - 1 year ago 119
CoffeeScript Question

How can i call the coffee script function on body load

I am using the
coffee script file to create some animations on the framerjs prototyping tool. what i want to achieve is that i have defined a function and i want to call that function on body load. how can i do that in coffeescript?


changeNumbers = ->
sketch.More_Details_Text.visible = false
sketch.Less_Details_Text.visible = true

Answer Source

You just call the function in your


This is executed whenever you open or reload your prototype.

This answer might be too simple but maybe you can explain your problem more if that doesn't help. Are you working in Framer Studio?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download