aboutsummaryrefslogtreecommitdiffstats
path: root/htdocs/src/scss/base/_animations.scss
blob: 6da56b25cafe8c000d29e31b363ab1e75954a5e6 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes slideInLeft {
  0% {
    margin-left: -100%;
  }

  100% {
    margin-left: 0;
    visibility: visible;
  }
}

@keyframes slideOutLeft {
  0% {
    margin-left: 0;
  }

  100% {
    margin-left: -100%;
    visibility: hidden;
  }
}

@keyframes slideInUp {
  0% {
    margin-bottom: -100vh;
  }

  100% {
    margin-bottom: 0;
    visibility: visible;
  }
}

@keyframes slideOutBottom {
  0% {
    margin-bottom: 0;
  }

  100% {
    margin-bottom: -100vh;
    visibility: hidden;
  }
}

.fade-in {
  animation: fadeIn 0.8s;
}

.fade-out {
  animation: fadeOut 0.8s;
}

.slide-in--left {
  animation: slideInLeft 0.8s;
}

.slide-out--left {
  animation: slideOutLeft 0.8s;
}

.slide-in--up {
  animation: slideInUp 1s;
}

.slide-out--bottom {
  animation: slideOutBottom 1s;
}