Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

动画translateX/Y和translate ,这类动效的起始值偏移量 都没有触发beforeLoadStyle #4011

Open
villiamVIX opened this issue Sep 2, 2024 · 0 comments
Assignees

Comments

@villiamVIX
Copy link

villiamVIX commented Sep 2, 2024

描述错误
translateX/Y和translate ,这类动效的起始值偏移量 都没有触发beforeLoadStyle的钩子。

预期行为
动画的长度单位偏移量和其他css样式一样,也能触发beforeLoadStyle的钩子。便于对动画里的长度单位做统一处理

版本
-Hippy原生SDK版本:3.3.0
-前端SDK和版本[@hippy/vue 2]

code

const moveDuration = 1000;


const loopActions = {
  left: [
    {
      startValue: 111, //❗ 这个偏移量未触发beforeLoadStyle钩子
      toValue: 666,    // ❗这个偏移量未触发beforeLoadStyle钩子
      duration: moveDuration, // 动画持续时间
    },
    {
      startValue: 666,
      toValue: 111,
      duration: moveDuration, // 动画持续时间
      repeatCount: -1,
    }
  ]
};


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants