aboutsummaryrefslogtreecommitdiff
path: root/src/css/_partial/_back-to-top.scss
blob: ee67aa23bb35e63c2a20a335f9868fa6c40f954c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// ==============================
// Back to top
// =============================

.back-to-top {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  transition-property: transform;
  transition-timing-function: ease-out;
  transition-duration: 0.3s;
  z-index: 10;

  &:hover {
    transform: translateY(-5px); 
  }
}

@include max-screen() {
  .back-to-top {
    display: none !important;
  }
}