Skip to content

Commit fe7f612

Browse files
committed
fix: animation of component 'BackToTop'
1 parent 2824145 commit fe7f612

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/BackToTop.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
default: function() {
2424
return {
2525
right: '1rem',
26-
bottom: '3rem',
26+
bottom: '6rem',
2727
width: '2.5rem',
2828
height: '2.5rem',
2929
'border-radius': '.25rem',
@@ -96,11 +96,12 @@ export default {
9696
}
9797
.fade-enter-active,
9898
.fade-leave-active {
99-
transition: opacity .5s;
99+
transition: all .5s;
100100
}
101101
.fade-enter,
102102
.fade-leave-to {
103103
opacity: 0
104+
transform translateY(120px)
104105
}
105106
.back-to-ceiling .Icon {
106107
fill: #9aaabf;

0 commit comments

Comments
 (0)