Skip to main content
Question

Set origin point for component interaction


sqott

I have a component that scales on hover and I would like it to scale from the center, however it seems like I’m not able to change the origin point, it’s always defaulted to 0,0 regardless of the constraints I set on it.

2 replies

sqott
  • Author
  • 3 replies
  • March 2, 2021

Found a hack-y workaround where you create a wrapper frame that stays the same between states and the padding/positioning of the internal content changes between states.


Ryder
  • 6 replies
  • November 25, 2022

The man is a genius… but really, it should work automatically… I wonder if variants even have a “center” conceptually.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings