Files
memory-infrastructure-palace/code/websites/pokedex.online/src/components/Pokeball.vue

55 lines
910 B
Vue

<template>
<div class="pokeball">
<div class="pokeball-button"></div>
<div class="pokeball-line"></div>
</div>
</template>
<style scoped>
.pokeball {
width: 100px;
height: 100px;
margin: 0 auto 30px;
position: relative;
border-radius: 50%;
background: linear-gradient(180deg, #f44336 50%, white 50%);
border: 5px solid #333;
animation: spin 3s linear infinite;
}
.pokeball-button {
position: absolute;
width: 30px;
height: 30px;
background: white;
border: 5px solid #333;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.pokeball-line {
position: absolute;
width: 100%;
height: 5px;
background: #333;
top: 50%;
left: 0;
transform: translateY(-50%);
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.pokeball:hover {
animation-play-state: paused;
}
</style>