93 lines
1.5 KiB
Vue
93 lines
1.5 KiB
Vue
<template>
|
|
<v-container class="d-flex flex-column align-center">
|
|
<div class="animation-container">
|
|
<div class="ballot">
|
|
<span class="ballot-text">Голос</span>
|
|
</div>
|
|
<div class="urn">
|
|
<div class="slot"></div>
|
|
</div>
|
|
</div>
|
|
</v-container>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
setup() {
|
|
return {};
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style scoped>
|
|
.animation-container {
|
|
position: relative;
|
|
width: 200px;
|
|
height: 300px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-end;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ballot {
|
|
position: absolute;
|
|
width: 60px;
|
|
height: 40px;
|
|
background-color: #004D40;
|
|
border-radius: 4px;
|
|
color: #fff;
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
line-height: 40px;
|
|
animation: dropBallot 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.ballot-text {
|
|
display: block;
|
|
}
|
|
|
|
.urn {
|
|
position: absolute;
|
|
bottom: 0;
|
|
width: 120px;
|
|
height: 80px;
|
|
background-color: #546E7A;
|
|
border-top-left-radius: 10px;
|
|
border-top-right-radius: 10px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.slot {
|
|
width: 60px;
|
|
height: 10px;
|
|
background-color: #455A64;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
@keyframes dropBallot {
|
|
0% {
|
|
top: -50px;
|
|
transform: rotate(0deg);
|
|
opacity: 1;
|
|
}
|
|
40% {
|
|
transform: rotate(15deg);
|
|
}
|
|
60% {
|
|
top: 220px;
|
|
transform: rotate(-10deg);
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
transform: rotate(0deg);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
}
|
|
</style>
|