I use two ways to make the button, one is to set the style on the background layer, and the other is to use the Frame as the background and set the style on the Frame.
I know that setting the style on the Frame will not have the effect of Smart animate, what is the best way to use in the actual design?
Should Frame only act as a container for layers and not set styles?
When I set Rotation on the Frame, the Smart animate effect does not happen, but other styles can work normally, such as height and width.
Is Rotation a special use case? Must be on the layer for the Smart animate effect to occur?
Rotation is not a style, itβs one of the transformations. They work just fine with smart animate as well, there are no special cases. But if you are talking about interactive components beta, the transformations applied on variants themselves are not a part of what components inherit (e.g. if you rotate a component, instances wonβt be rotated). So to animate rotation when using interactive components, you need to rotate something inside of them, not components themselves. Instead of using a background layer, I would suggest to simply create another frame or instance inside of the component.