mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Add Animations class, including pulse.
This commit is contained in:
		
							
								
								
									
										7
									
								
								app/static/js/Animations.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								app/static/js/Animations.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
class Animations {
 | 
			
		||||
  static async pulseHighlight(statusElement, ms) {
 | 
			
		||||
    statusElement.classList.add("pulse");
 | 
			
		||||
    await new Promise(resolve => setTimeout(resolve, ms));
 | 
			
		||||
    statusElement.classList.remove("pulse");
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user