我有一个当某个动作出现时弹出的div。而不是突然出现,我把它动画化,这样当事件发生时,它看起来越来越大。这是很好的,但我希望它不是从div的左上角动画,我希望它从div的中心或div的中心顶部动画。object into the hub by animations removeHubContents();
object.
我正在使用下面的代码来做一个变换动画: // scaleX, scaleY, scale, theres plenty more options you can findresult of the animation code below and is just a number.目前,transform-origin (<-在react原生中实际上不可用)是中心对于动画,组件从中心缩放,因此它看起来像是从中心“扩展”。我希望它从顶部“展开”(例