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

What is Framer? Join the Community
Return to index
Luis Escobar
Posted Feb 13 - Read on Facebook

Is there a function that allows me to do something as soon as the prototype loads?
onPageLoad or something like that?

Thanks

3 Comments

Adrian Dampc

Just add it without an event.

Ex:
Layer.animate

Instead of:
Layer.onTap ->
this.animate

Sergey Ivanov

window.onload = ->
....do someting

Luis Escobar

my workaround is...

test = new Layer
_____visible: false

test.animate
_____x: 1

test.onAnimationEnd ->
_____lottie.goToAndStop(0)

Read the entire post on Facebook