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

What is Framer? Join the Community
Return to index
Dani Bedar
Posted Feb 04 - Read on Facebook

Anyone have any tips on how to handle html text within a button? I have a clickEvent animation on the button that changes the text (increase the number by 1), but I'm having trouble both keeping the text centered in the button during the animation, and changing the integer. (My button animation is also weirdly delayed). I shared my VERY messy code (it's a work in progress). Appreciate any help!

1 Comments

Aalok Trivedi

I always use 'Utils.labelLayer' for button text. It automatically centers it and you can change it like normally would with styles and html. http://share.framerjs.com/piiauvauqosg/

Read the entire post on Facebook