angularjs - Delete item from ng-repeat which has a transition animation -


i have array of items in ng-repeat. parent element has background-transition animation 1 second duration.

when ever delete element using splice, takes 1 second remove ui. (based on time give transition duration)

i don't want add class remove transition first, , delete. or way?

<div class="mytransitionclass" ng-repeat="d in myarray">          {{d.value}}     <button type="button" class="closeicon" ng-click="deleteitem($index)">delete</button> </div>  .mytransitionclass {     transition: background-color ease-in 1s;     -webkit-transition: background-color ease-in 1s; } 

try https://docs.angularjs.org/api/nganimate

.mytransitionclass.ng-enter {     transition: background-color ease-in 1s;     -webkit-transition: background-color ease-in 1s; } 

working jsfiddle http://jsfiddle.net/irhabi/3fgtqwgq/


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -