Commit 4e1be719 by 前端

新增箭头

1 parent 993ef5c7
<template>
<div>
<!-- 左箭头 开始 -->
<div class="left_arrow">
<img src="@/assets/images/arrow_left.png" class="img" alt="" />
<img src="@/assets/images/arrow_circle.png" class="circle" alt="" />
</div>
<!-- 左箭头 end -->
<!-- 右箭头 开始 -->
<div class="right_arrow">
<img src="@/assets/images/arrow_right.png" class="img" alt="" />
<img src="@/assets/images/arrow_circle.png" class="circle" alt="" />
</div>
<!-- 右箭头 end -->
</div>
</template>
<script>
export default {
name: 'FixedArrow',
data() {
return {}
}
}
</script>
<style lang="scss" scoped>
.left_arrow,
.right_arrow {
position: fixed;
top: 0;
bottom: 0;
z-index: 10;
width: 100px;
.img {
width: 48px;
height: 48px;
opacity: 0;
cursor: pointer;
position: fixed;
top: 50%;
transform: translateY(-50%);
z-index: 12;
}
.circle {
width: 84px;
height: 84px;
position: fixed;
top: 50%;
// transform: translateY(-50%);
margin-top: -42px;
z-index: 11;
opacity: 0;
}
}
.left_arrow {
left: 0;
.img {
left: 18px;
}
.circle {
left: 0;
}
}
.right_arrow {
right: 0;
.img {
right: 18px;
}
.circle {
right: 0;
}
}
.left_arrow:hover,
.right_arrow:hover {
.img {
opacity: 1;
}
.circle {
opacity: 1;
animation: rotate360 1.2s ease-out 0s;
}
}
@keyframes rotate360 {
100% {
transform: rotate(360deg);
}
}
</style>
\ No newline at end of file
......@@ -26,9 +26,11 @@
</div>
</div>
<!-- 欢迎词 end -->
<fixed-arrow />
</div>
</template>
<script>
import FixedArrow from '@/components/Arrow.vue';
export default {
name: 'TopHead',
props: {
......@@ -37,6 +39,9 @@ export default {
default: '广联数科运营看板'
}
},
components:{
FixedArrow
},
data() {
return {
month: '',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!