|
@@ -6,7 +6,7 @@
|
|
|
:style="{ visibility: isShowList ? 'visible' : 'hidden' }"
|
|
|
>
|
|
|
<!-- <ul class=""> -->
|
|
|
- <transition-group appear tag="ul" class="danmaku-list">
|
|
|
+ <transition-group appear tag="ul" class="danmaku-list" name="dm">
|
|
|
<li
|
|
|
class="danmaku-list-item"
|
|
|
v-for="(item, key) in showDanmakuData"
|
|
@@ -33,7 +33,7 @@
|
|
|
:src="closeIcon || ''"
|
|
|
v-if="!isShowList"
|
|
|
/>
|
|
|
- <button class="send-btn">发送</button>
|
|
|
+ <!-- <button class="send-btn">发送</button> -->
|
|
|
</div>
|
|
|
<ul class="show-list" v-show="isShowSelectList">
|
|
|
<li
|
|
@@ -155,6 +155,11 @@ export default {
|
|
|
text-align: left;
|
|
|
max-width: 290px;
|
|
|
}
|
|
|
+.danmaku-list li.danmaku-list-item:nth-last-child(5) {
|
|
|
+ /* visibility: hidden; */
|
|
|
+ animation: fadeout 0.3s linear;
|
|
|
+}
|
|
|
+
|
|
|
.input-container {
|
|
|
background: rgba(0, 0, 0, 0.6);
|
|
|
border-radius: 20px;
|
|
@@ -233,4 +238,40 @@ export default {
|
|
|
.input-container .show-list .list-item:hover {
|
|
|
background: rgb(184, 23, 23);
|
|
|
}
|
|
|
+
|
|
|
+.dm-enter {
|
|
|
+ opacity: 0;
|
|
|
+ transform: translateY(20px);
|
|
|
+}
|
|
|
+
|
|
|
+.dm-leave-to {
|
|
|
+ opacity: 0;
|
|
|
+ transform: translateY(-50px);
|
|
|
+}
|
|
|
+
|
|
|
+.dm-enter-active,
|
|
|
+.dm-leave-active {
|
|
|
+ transition: all 0.6s ease;
|
|
|
+}
|
|
|
+
|
|
|
+.dm-move {
|
|
|
+ transition: all 0.6s ease;
|
|
|
+}
|
|
|
+
|
|
|
+.dm-leave-active {
|
|
|
+ position: absolute;
|
|
|
+}
|
|
|
+@keyframes fadeout {
|
|
|
+ 0% {
|
|
|
+ opacity: 1;
|
|
|
+ transform: translateY(8px);
|
|
|
+ }
|
|
|
+ 50%{
|
|
|
+ transform: translateY(3px);
|
|
|
+ }
|
|
|
+ 100%{
|
|
|
+ opacity: 0.9;
|
|
|
+ transform: translateY(0px);
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|