mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-05-16 10:41:46 +00:00
43 lines
923 B
Svelte
43 lines
923 B
Svelte
<script lang='ts'>
|
|
import { cn } from '$lib/utils'
|
|
|
|
export let color = 'currentColor'
|
|
export let size = 24
|
|
export let strokeWidth = 2
|
|
let className = ''
|
|
|
|
export { className as class }
|
|
</script>
|
|
|
|
<svg
|
|
xmlns='http://www.w3.org/2000/svg'
|
|
width={size}
|
|
height={size}
|
|
viewBox='0 0 24 24'
|
|
fill='none'
|
|
stroke={color}
|
|
stroke-width={strokeWidth}
|
|
stroke-linecap='round'
|
|
stroke-linejoin='round'
|
|
class={cn(className, 'overflow-visible [transform-origin:center] target-animated-icon')}
|
|
{...$$restProps}
|
|
>
|
|
<path
|
|
d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'
|
|
/><circle cx='12' cy='12' r='4' />
|
|
</svg>
|
|
|
|
<style>
|
|
.target-animated-icon {
|
|
animation: screw-rotate 1s ease 3;
|
|
}
|
|
|
|
@keyframes screw-rotate {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(180deg);
|
|
}
|
|
}
|
|
</style>
|