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

What is Framer? Join the Community
Return to index
Knis Steizinger
Posted Mar 07 - Read on Facebook

How can I trigger events with values typed in an input field? E.g. starting an animation when entering the word "animation" (I am using the Input module by ajimix)

3 Comments

Steve Ruiz

Take a look at the on "change:html" event listener. I'd set up a listener that fires when the HTML of the input changes, checks whether the input's HTML is 'animation', and fires a second function or animation if that check returns true.

Aalok Trivedi

Also look at Jordan Robert Dobson's input module. It has a match feature

Adria Jimenez

Hey Knis Steizinger you can easily do:
input.on "keyup", ->
if @value == "animation"
and do here the animation...

Sorry for the formatting but facebook doesn't respect the spaces...

Read the entire post on Facebook