-
Notifications
You must be signed in to change notification settings - Fork 0
/
wizard-animation.scss
executable file
·108 lines (91 loc) · 1.64 KB
/
wizard-animation.scss
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
/* Put here animation specific styles */
$orange: #FF5F19;
$orange-alt: #FA8E6A;
$white: #FFFFFF;
.celebration-container {
position: relative;
.bubble-container {
position: absolute;
left: 0;
top: 20%;
width: 50px;
height: 50%;
z-index: 0;
&.bubble-container--right {
left: auto;
right: 0;
}
}
@media (min-width: 600px) {
max-width: 550px;
margin: 0 auto;
.bubble-container {
left: -80px;
width: 100px;
&.bubble-container--right {
right: -80px;
}
}
}
}
.celebration-message {
max-width: 450px;
/* This makes sure that the text stays above the bubbles. */
position: relative;
z-index: 1;
}
#blinking-face-obj {
position: relative;
z-index: 5;
width: 52px;
height: 52px;
margin-bottom: 25px;
}
/* Magic Dot thing */
.magic-dot {
display: inline-block;
position: absolute;
top: 30px;
right: 30px;
width: 12px;
height: 12px;
border-radius: 50%;
transition: all .5s ease-in;
background-color: $orange;
z-index: 1;
}
.magic-dot-expanded {
width: 1200px;
height: 1200px;
top: -200px;
right: -200px;
}
/* Magic Texts */
.wizard-end-container {
position: absolute;
width: 100%;
top: 0;
left: 0;
visibility: hidden;
padding: 20px;
}
.wizard-end-appear {
visibility: visible;
}
.magic-text-container .magic-text {
max-width: 400px;
color: $white;
text-align: center;
z-index: 2;
$delay: .05s;
transform: scale3d(0,0,0);
transition: all .3s cubic-bezier(0, -2, 0, 2) $delay;
@for $nth from 1 through 4 {
&:nth-child(#{$nth}) {
transition-delay: $delay + ($nth * 0.15s);
}
}
}
.magic-text-container.magic-text-container-appear .magic-text {
transform: scale3d(1,1,1);
}