mirror of
				https://github.com/KevinMidboe/brewPi.git
				synced 2025-10-29 16:50:12 +00:00 
			
		
		
		
	Animate brew progress arrow 1.8s after page load
This commit is contained in:
		| @@ -1,4 +1,5 @@ | ||||
| <script lang="ts"> | ||||
|   import { onMount } from 'svelte'; | ||||
|   import brews from '../../brews.json'; | ||||
|   import ArrowRight from '../icons/ArrowRight.svelte'; | ||||
|  | ||||
| @@ -39,6 +40,10 @@ | ||||
|  | ||||
|   let isOpen: number | null; | ||||
|  | ||||
|   onMount(() => | ||||
|     setTimeout(() => document.querySelector('a.brew svg')?.classList.add('animate'), 1800) | ||||
|   ); | ||||
|  | ||||
|   const steps: Array<IStep> = [ | ||||
|     { | ||||
|       icon: 'M9.94 8.007l3.983 3.983 1.06 1.06 1.06-1.06 6.93-6.93-2.12-2.12-6.93 6.93h2.12l-3.982-3.984-2.12 2.12z', | ||||
| @@ -135,7 +140,7 @@ | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   :global(a.brew:hover svg) { | ||||
|   :global(a.brew:hover svg, a.brew svg.animate) { | ||||
|     animation: bounce 2s infinite; | ||||
|   } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user