-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavidad.css
71 lines (65 loc) · 1.22 KB
/
navidad.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
*{padding: 0; margin: 0; box-sizing: border-box;}
body{background-color: green;}
.contenedor{
background: white;
width: 100%;
height: 80vh;
overflow: hidden;
margin: auto;
position: relative;
}
.arbolito{
width: 600px;
height: auto;
position: absolute;
bottom:-20px;
right: 50%;
transform: translateX(50%);
animation: sube 3s ease-out 1;
}
.adorno{
width: 30px;
height: 30px;
background: gold;
display: inline-block;
border-radius: 50%;
position: absolute;
animation:
aparece 3s linear 3s 1 backwards,
cambio 3s linear infinite
;
}
.bolita1{
top: 40%;
left: 48%;
animation-delay: 3s;
}
.bolita2{
top:57%;
left:49%;
animation-delay: 5s;
}
.bolita3{
top:70%;
left:49%;
animation-delay: 7s;
}
.bolita4{
top:83%;
left:49%;
animation-delay: 9s;
}
@keyframes sube {
from { transform: translateX(50%) translateY(100%); }
to { transform: translateX(50%) translateY(0%) ; }
}
@keyframes cambio {
0%{background: gold; box-shadow: 0 0 2em gold;}
33% {background: green; box-shadow: 0 0 2em green;}
66% {background: blue; box-shadow: 0 0 2em blue;}
100% {background: orange; box-shadow: 0 0 2em orange;}
}
@keyframes aparece {
from {opacity:0;}
to {opacity: 1;}
}