File tree Expand file tree Collapse file tree 2 files changed +28
-5
lines changed 
app-src/scripts/task-list Expand file tree Collapse file tree 2 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -451,3 +451,29 @@ $task-inner-padding-left-right: 6px;
451451    }
452452  }
453453}
454+ 
455+ .mark-as-done-btn  {
456+   ng-md-icon  {
457+     svg  {
458+       animation  : 0.2s   success- btn- ani linear ;
459+ 
460+       [ui-view ].ng-enter-active  & ,
461+       [ui-view ].ng-leave  & ,
462+       [ui-view ].ng-enter  &  {
463+         animation-duration  : 0s   !important ;
464+       }
465+     }
466+   }
467+ }
468+ 
469+ @keyframes  success-btn-ani  {
470+   0%  {
471+     transform  : scale (0 ) rotate (0deg  );
472+   }
473+   50%  {
474+     transform  : scale (1.2 ) rotate (180deg  );
475+   }
476+   100%  {
477+     transform  : scale (1 ) rotate (360deg  );
478+   }
479+ }
Original file line number Diff line number Diff line change 117117                        aria-label ="delete "> </ ng-md-icon > 
118118          </ md-button > 
119119          < md-button  ng-click ="task.isDone= !task.isDone; $ctrl.onTaskDoneChanged(task) "
120-                      class ="md-icon-button "
120+                      class ="md-icon-button mark-as-done-btn  "
121121                     tabindex ="2 "
122122                     aria-label ="un-/mark as done "> 
123-             < ng-md-icon  icon ="check "
124-                         ng-show ="!task.isDone "> </ ng-md-icon > 
125-             < ng-md-icon  icon ="undo "
126-                         ng-show ="task.isDone "> </ ng-md-icon > 
123+             < ng-md-icon  icon ="{{(task.isDone?'undo':'check')}} "> </ ng-md-icon > 
127124          </ md-button > 
128125        </ div > 
129126      </ div > 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments