lsd.less 2.26 KB
Newer Older
Sandro Lutz's avatar
Sandro Lutz committed
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
@keyframes lsdtrip {
  0% {
    background-color: hsl(201, 100%, 39%);
  }

  10% {
    background-color: hsl(237, 100%, 39%);
  }

  20% {
    background-color: hsl(273, 100%, 39%);
  }

  30% {
    background-color: hsl(309, 100%, 39%);
  }

  40% {
    background-color: hsl(345, 100%, 39%);
  }

  50% {
    background-color: hsl(21, 100%, 39%);
  }

  60% {
    background-color: hsl(57, 100%, 39%);
  }

  70% {
    background-color: hsl(93, 100%, 39%);
  }

  80% {
    background-color: hsl(129, 100%, 39%);
  }

  90% {
    background-color: hsl(165, 100%, 39%);
  }

  100% {
    background-color: hsl(201, 100%, 39%);
  }
}

/* Based on tada animation from Animate.css https://github.com/daneden/animate.css */

@keyframes tada {
  from {
    transform: scale3d(1, 1, 1);
  }

  10%,20% {
    transform: scale3d(.8, .8, .8) rotate3d(0, 0, 1, -4deg);
  }

  30%,50%,70%,90% {
    transform: scale3d(1, 1, 1) rotate3d(0, 0, 1, 4deg);
  }

  40%,60%,80% {
    transform: scale3d(1, 1, 1) rotate3d(0, 0, 1, -4deg);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes tada {
  from {
    transform: scale3d(1, 1, 1);
  }

  10%,20% {
    transform: scale3d(.8, .8, .8) rotate3d(0, 0, 1, -4deg);
  }

  30%,50%,70%,90% {
    transform: scale3d(1, 1, 1) rotate3d(0, 0, 1, 4deg);
  }

  40%,60%,80% {
    transform: scale3d(1, 1, 1) rotate3d(0, 0, 1, -4deg);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes tada2 {
  from {
    transform: scale3d(1, 1, 1);
  }

  10%,20% {
    transform: translateX(-1%) scale3d(.95, .95, .95);
  }

  30%,50%,70%,90% {
    transform: translateX(3%) scale3d(1, 1, 1);
  }

  40%,60%,80% {
    transform: translateX(-2%) scale3d(.95, .95, .95);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes floatText {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-200%);
  }
}

.greeting {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  line-height: 1em;
  text-align: center;
  transform: translateX(100%);

  &.animation1 {
    animation: floatText 30s linear 0s infinite;
  }

  &.animation2 {
    animation: floatText 30s linear 10s infinite;
  }

  &.animation3 {
    animation: floatText 30s linear 20s infinite;
  }
}