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 · 1 comment
Assignees
Labels
stale: 30d No interaction in the last 30 days

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,
    }
  ]
};


Copy link

hippy-service bot commented Nov 2, 2024

Pay attention 🛎️ !!
There has been no activity on this issue for 2 months, so I will label it stalled.
It will be automatically closed in 60 days if no more activity. Feel free to leave a comment if you have any questions.

@hippy-service hippy-service bot added the stale: 30d No interaction in the last 30 days label Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale: 30d No interaction in the last 30 days
Projects
None yet
Development

No branches or pull requests

2 participants