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

What is Framer? Join the Community
Return to index
Sam Jang
Posted Feb 24 - Read on Facebook

Hi Framers! I'm in need of some help as I'm fairly new to Framer.

I wanted to make a number (text) to increase upon clicking a button and decrease upon clicking another button.

Which code should I use to make this happen?

Thanks in advance!


Brian Williams

myNumber += 1
myNumber -= 1

if supported in coffee


myNumber = myNumber + 1

In the click event of the button

Aalok Trivedi

this example I made may help you:

essentially, just create a variable with the start # (count = 0) and then under an event handler put 'count++' to increase by 1 or count-- to decrease by 1

Read the entire post on Facebook