-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
127 lines (115 loc) · 2.15 KB
/
style.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
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
/*
TIPS TO MAKE IT RESPONSIVE TAKEN FROM:
http://thenewcode.com/744/Make-SVG-Responsive
*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
text-align: center;
}
h1 {
padding: 2% 0;
font-size: 15em;
margin-top: 200px;
}
h2 {
margin-top: 10px;
margin-top: 100px;
color: #333366;
}
#rotor-derecho, #rotor-izquierdo {
animation: rotores 1s linear infinite alternate;
transform-origin: center;
transform-box: fill-box;
}
#chasis-drone {
animation: drone infinite ease-in-out 1s alternate;
transform-origin: center;
}
#pro-camara {
animation: camara infinite ease-in-out 1s alternate;
transform-origin: center;
}
.svg-container {
display: inline-block;
position: relative;
width: 60%;
padding-bottom: 80%;
vertical-align: middle;
overflow: hidden;
margin-top: -770px;
}
.svg-content {
display: inline-block;
position: absolute;
top: 0;
left: 0;
}
.svgdrone{
position: absolute;
}
@supports (-webkit-text-stroke: 1px black) {
h1 {
-webkit-text-stroke: 5px #333366;
-webkit-text-fill-color: white;
}
}
@keyframes rotores {
from {
transform: rotateY(0deg) translateY(-40%);
}
to {
transform: rotateY(3000deg) translateY(10%);
}
}
@keyframes drone {
from {
transform: rotateX(0deg) translateY(-2%);
}
to {
transform: rotateX(10deg) translateY(0%);
}
}
@keyframes camara {
from {
transform: translateY(-1.5%);
}
to {
transform: translateY(0%);
}
}
@media screen and (max-width: 1220px) {
.svg-container {
margin-top: -690px;
}
.svgdrone{
position: relative;
left: unset !important;
}
}
@media screen and (max-width: 1040px) {
.svg-container {
margin-top: -600px;
}
}
@media screen and (max-width: 650px) {
.svg-container {
margin-top: -430px;
}
h1{
font-size: 10em;
-webkit-text-stroke: 3px #333366;
}
}
@media screen and (max-width: 430px) {
.svg-container {
margin-top: -300px;
}
h1 {
font-size: 5em;
-webkit-text-stroke: 2px #333366;
}
}