添加其他动画

This commit is contained in:
lyswhut
2020-04-28 14:28:51 +08:00
parent 6d0f668f88
commit e51ee8c1ad
3 changed files with 409 additions and 2 deletions
+26 -2
View File
@@ -1,6 +1,6 @@
<template lang="pug">
div(:class="$style.aside")
div(:class="$style.logo")
div(:class="['animated', logoAnimate, $style.logo]")
svg(version='1.1' xmlns='http://www.w3.org/2000/svg' xlink='http://www.w3.org/1999/xlink' width='100%' height='100%' viewBox='0 0 127 61' space='preserve')
use(xlink:href='#icon-logo')
@@ -29,6 +29,7 @@ div(:class="$style.aside")
<script>
import { mapGetters } from 'vuex'
// import { getRandom } from '../../utils'
export default {
props: {
list: {
@@ -41,12 +42,34 @@ export default {
data() {
return {
active: 'search',
animates: [
'bounce',
// 'flash',
// 'pulse',
'rubberBand',
// 'shake',
// 'headShake',
'swing',
'tada',
// 'wobble',
'jello',
// 'heartBeat',
],
logoAnimate: '',
}
},
computed: {
...mapGetters('list', ['defaultList', 'loveList', 'userList']),
},
methods: {},
// mounted() {
// this.logoAnimate = this.animates[getRandom(0, this.animates.length)]
// },
// methods: {
// handleMouseEnter() {
// console.log('object')
// this.logoAnimate = this.animates[getRandom(0, this.animates.length)]
// },
// },
}
</script>
@@ -77,6 +100,7 @@ export default {
// height: 120px;
color: @color-theme-font;
flex: none;
// -webkit-app-region: no-drag;
}
.menu {