-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrotations.css
51 lines (46 loc) · 1.04 KB
/
rotations.css
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
@-webkit-keyframes rotatePortrait {
100% { -webkit-transform: rotate(90deg) translateY(25%) translateX(0);
}
}
.portrait {
-webkit-animation-name: rotatePortrait;
-webkit-animation-duration: 0.5s;
-webkit-animation-fill-mode: forwards;
-webkit-transition-timing-function:linear;
}
#mainScreen {
margin-top: 12px;
}
@-webkit-keyframes rotateLandscape {
0% {
-webkit-transform: rotate(90deg);
}
100% { -webkit-transform: rotate(0deg) translateX(-50%);
}
}
.landscape {
-webkit-animation-name: rotateLandscape;
-webkit-animation-duration: 0.5s;
-webkit-animation-fill-mode: forwards;
-webkit-transition-timing-function:linear;
}
.rotationDiv {
width: 100%;
position: relative;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
@media screen and (max-width: 800px), screen and (max-height: 1200px) and (max-width: 1250px), screen and (max-height: 700px)
{
.rotationDiv {
position: relative;
top: 25% !important;
left: 0;
transform: translate(0, 0);
}
#mainScreen {
max-height: 40vh;
width: unset !important;
}
}