Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用这个库
我正在尝试创建具有最小可能缩放的应用程序。在我的应用程序中,我有一个小区域,图像以幻灯片形式呈现。但是图像很大,所以当 kenburns 效果开始时它放大了太多。
如何设置缩放级别?
您需要创建自己的TransitionGenerator. 如果你想保持随机移动并控制缩放,一个好的开始是基于你的自TransitionGenerator定义这个。突出显示的线 (120) 使用随机缩放因子。硬编码它会做你需要的。
TransitionGenerator