Play animation multiple times
- 主要語言
- HTML
- 星號
- 175
- 分支
- 10
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I'm adding the shake animation to a password modal, when the password is wrong it will shake, and this works great so far, however, when I try to submit the wrong password again, it won't shake a second time. What would be the process to get this to work?
So far I have this code
```
ngfx-shake="modal.wrongPassword"
```
And in my controller on a wrong password I have this
```
++vm.wrongPassword;
```
How can I get something that makes this fire the animation multiple times in a row without having to have some sort of timeout to reset the value after the animation is done
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Look at the angular-fx source code for the shake directive implementation, likely in a file like ngfx-shake.js or similar. Understand how the directive binds to the expression and triggers the animation. The issue is about resetting the animation state so it can be triggered again consecutively. Check if there's a flag or a timeout that needs to be cleared. Test by modifying the directive to allow repeated triggers without a reset delay.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- angular, angularjs, javascript
- 領域
- frontend
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100