appear animation v1
This commit is contained in:
parent
90dff9769e
commit
311ce05a30
4 changed files with 32 additions and 69 deletions
|
|
@ -1,10 +1,15 @@
|
|||
<template>
|
||||
|
||||
<div id=inputItem
|
||||
class="input-item playing"
|
||||
:style="{ top: `${elementY}px`, left: `${elementX}px` }">
|
||||
:style="{ top: `${elementY}px`, left: `${elementX}px` }"
|
||||
>
|
||||
|
||||
<span class="play"></span>
|
||||
<span class="pause"></span>
|
||||
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
|
|
|||
|
|
@ -42,16 +42,21 @@
|
|||
</template>
|
||||
|
||||
<script lang='ts'>
|
||||
|
||||
import {defineComponent} from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: "MessageItem",
|
||||
|
||||
props: {
|
||||
message: {
|
||||
type: Object,
|
||||
required: true
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
@ -119,6 +124,10 @@
|
|||
padding: 10px;
|
||||
|
||||
border-radius: 10px;
|
||||
|
||||
// Animate on render.
|
||||
animation-name: appear;
|
||||
animation-duration: 0.25s;
|
||||
}
|
||||
|
||||
#aiBubble {
|
||||
|
|
@ -160,4 +169,13 @@
|
|||
border-radius: 15px;
|
||||
}
|
||||
|
||||
@keyframes appear {
|
||||
from {
|
||||
transform: scale(0.3);
|
||||
}
|
||||
to {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
Loading…
Reference in a new issue