/
garden.css
106 lines (95 loc) · 1.79 KB
/
garden.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
* {
box-sizing: border-box;
}
body {
background: linear-gradient( skyblue, blue );
height: 100em;
margin: 0;
padding: 0;
overflow: hidden;
}
.flower,
.sun {
position: absolute;
right: 20px;
top: 50px;
height: 100px;
width: 100px;
border-radius: 100px;
background: yellow;
border: 50px dotted #ff6633;
box-sizing: content-box;
box-shadow: 0 0 1000px white;
}
.sun {
transition: height .1s ease-in-out,
width .1s ease-in-out,
all 100s ease-in-out;
}
.sun:active {
height: 105px;
width: 105px;
transform: rotate( 36000deg );
}
.grass {
height: 20%;
width: 100%;
background: linear-gradient( darkgreen, green );
border-top: 1px solid darkgreen;
box-shadow: 0 0 5px darkgreen;
position: absolute;
bottom: 0;
left: 0;
right: 0;
}
.stem {
position: absolute;
left: 50%;
margin-left: -7.5px;
background: linear-gradient( to left, lime, limegreen );
border: 1px solid darkgreen;
border-bottom: none;
bottom: 10%;
width: 15px;
height: 20px;
transition: height 4.741s ease-in-out;
}
.stem.alive,
.stem:active,
.stem:hover {
height: 200px;
}
.flower {
border-color: white;
border-width: 15px;
box-shadow: 0 0 1px black;
top: -30px;
left: -25px;
height: 30px;
width: 30px;
background-color: deeppink;
transition: height 2s 3.4s ease-in-out,
width 2s 3.4s ease-in-out,
left 2s 3.4s ease-in-out,
border-width 2s 3.4s ease-in-out,
top 2s 3.4s ease-in-out,
background-color .5s ease-in-out,
-webkit-transform 2s 3.4s ease-in-out;
}
.alive .flower,
.stem:hover .flower,
.stem:active .flower {
height: 60px;
width: 60px;
left: -55px;
top: -60px;
border-width: 30px;
}
#first {
margin-left: -75px;
margin-bottom: -20px;
}
#third {
margin-left: 100px;
margin-bottom: -10px;
}