-
Notifications
You must be signed in to change notification settings - Fork 0
/
iphone.less
113 lines (106 loc) · 2.12 KB
/
iphone.less
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
//Iphone Animation Variables:
@iPstarAnimDuration: 0.25s;
@iPAnimDelay: 4.75s;
@iPstarAnimDelta: 0.2s;
.iphone{
width: 125px;
height: 195px;
position: relative;
}
.iphone{
.screen{
width: 108px;
height: 177px;
background-color: transparent;
background-image: url(images/iphone_screen.gif);
}
.star{
position: absolute;
top: 72px;
//left: 9px;
width: 18px;
height: 16px;
background-color: transparernt;
background-image: url(images/iphone_star.png);
background-repeat: no-repeat;
}
}
.iphone{
opacity: 0;
.star-1,
.star-2,
.star-3,
.star-4,
.star-5{
left: -1000px;
top: -1000px;
transition: all 0.5s linear 1s;
opacity: 0;
}
}
.animate .iphone{
opacity: 1;
transition: opacity 0.1s linear 1s;
transition-delay: @iPAnimDelay;
.star-1,
.star-2,
.star-3,
.star-4,
.star-5{
top: 72px;
opacity: 1;
-webkit-transition: all 0.25s linear;
}
.star-1{
left: 9px;
transition-delay: @iPAnimDelay + @iPstarAnimDelta*5;
}
.star-2{
left: 27px;
transition-delay: @iPAnimDelay + @iPstarAnimDelta*4;
}
.star-3{
left: 45px;
transition-delay: @iPAnimDelay + @iPstarAnimDelta*3;}
.star-4{
left: 63px;
transition-delay: @iPAnimDelay + @iPstarAnimDelta*2;
}
.star-5{
left: 81px;
transition-delay: @iPAnimDelay + @iPstarAnimDelta;
}
}
.medal{
width: 150px;
height: 186px;
position: absolute;
bottom: 0;
right: 0;
background-color: transparent;
background-image: url(images/iphone_medal.png);
-webkit-background-size: 100% auto;
background-size: 100% auto;
background-repeat: no-repeat;
opacity: 0;
}
.animate .iphone{
.medal{
width: 58px;
height: 72px;
-webkit-transition: all 0.35s ease-in 1s;
-moz-transition: all 0.35s ease-in 1s;
-ms-transition: all 0.35s ease-in 1s;
-o-transition: all 0.35s ease-in 1s;
transition: all 0.35s ease-in 1s;
opacity: 1;
}
}
.iphones .feature-title{
opacity: 0;
}
.animate .iphones .feature-title{
opacity: 1;
transition: opacity 0.25s linear;
transition-delay: @iPAnimDelay;
}