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

What is Framer? Join the Community
Return to index
Peter Hilgersom
Posted Feb 05 - Read on Facebook

hi guys,

for the code guru's, there must be a quicker way to do write this snippet right? :)


Benjamin Den Boer

Hey Peter, yes: you can store these layers in a new array, then loop over all of the layers within the array and add the same animation options and even the states for all of them. :) Like this:

Peter Hilgersom

Great recommendation, thanks Benjamin!

Peter Hilgersom

Come to think about it, might be a good one to add as a snippet. Very common in it's usage :)

Read the entire post on Facebook