720kb / 720kb/angular-fx

Play animation multiple times

Aberta
#16 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
HTML
Estrelas
175
Forks
10
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
angular, angularjs, javascript
Domínio
frontend
Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
45/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.