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

What is Framer? Join the Community
Return to index
Ruben van Gaalen
Posted Mar 21 - Read on Facebook

I'm trying to display the value of a (changing) slider component into an html layer element (which is also styled with help of the span element). What's the best way to do this? Help is much appreciated!

2 Comments

Jordan Robert Dobson

Well HTML prop isn't an animateable value.

Try this for your layerE

layerE = new Layer
html: ""
y: 325
x: 66
height:20
color: "#555"
backgroundColor: "white"
style: fontSize: "41px"

Then inside your onChange event do the following...

layerE.html = "#{(newValue * 100)}%"

Ruben van Gaalen

That works! Thank you!

Read the entire post on Facebook