Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | <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>
|