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

What is Framer? Join the Community
Return to index
Dan Clarke
Posted Aug 03 - Read on Facebook

is it possible to change the SliderComponent to vertical rather than horizontal?

7 Comments

Josh Ackerman

I am not near a computer right now but try making the height larger than the width. If I recall correctly I had success with this.

Dan Clarke

hey that worked!

Dan Clarke

thanks man. however, need to figure out to orientate the knob to start at the base rather than the top...

Dan Clarke

I can swap the fill.backgroundColor and backgroundColor around and maybe invert the min and max values but the knob will remain at the top...hmmm....

Antonio Krämer Fernandez

min: 100, max: 0 should do the deal, additional you can set slider.value to move the knob

Dan Clarke

ah yep. need to change the value manually to set the start position but then easy to invert the min/max values, thanks

Antonio Krämer Fernandez

have a look at Utils.modulate: http://framerjs.com/docs/#utils.modulate

This is a function that lets you easily translate a range into another range for example when you want to invert min/max

Read the entire post on Facebook