diff --git a/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue b/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue index a5806bce..655fe824 100644 --- a/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue +++ b/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue @@ -21,7 +21,7 @@ {{ item.title }} -
+
图表图片
@@ -175,18 +175,6 @@ $halfCenterHeight: 50px; } } } - /* 缩小展示 */ - @keyframes miniAnimation { - from { - width: $itemWidth * 2; - } - to { - width: $itemWidth; - } - } - &.miniAnimation { - animation: miniAnimation 0.5s; - } &.single { .item-box { @extend .go-transition; @@ -212,11 +200,24 @@ $halfCenterHeight: 50px; .list-img { height: $halfCenterHeight; width: auto; + transition: all 0.2s; } } .list-bottom { display: block; } } + /* 缩小展示 */ + @keyframes miniAnimation { + from { + width: $itemWidth * 2; + } + to { + width: $itemWidth; + } + } + &.miniAnimation { + animation: miniAnimation 0.5s; + } }