aboutsummaryrefslogtreecommitdiff
path: root/index.html
blob: 1e6ac7fc750f93575e6aaf222f69db6304e2b030 (plain)
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
    Copyright Wojtek Kosior 2021

    This file and accompanying svg images are available under the terms of CC0.
    See: https://koszko.org/cc0-license.txt
  -->
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta http-equiv="Content-Security-Policy" content="script-src"/>
    <title>DzieƄ mamy</title>
    <style type="text/css">
      body>* {
	  position: fixed;
      }

      body>* * {
	  position: relative;
      }

      .tulip {
	  height: 50vh;
	  width: auto;
	  top: 25vh;
	  left: 50vw;
	  transform:translateX(-50%);
      }

      .grass {
	  bottom: 0;
	  width: 100%;
	  height: 35%;
      }

      .text {
	  bottom: 2vh;
	  left: 50vw;
	  transform:translateX(-50%);
	  animation: pulsating-text 3s infinite ease;
      }

      @keyframes pulsating-text {
	  0%, 60%, 100% {
	      height: 35vh;
	      width: 91vw;
	  }
	  80% {
	      height: 38vh;
	      width: 95vw;
	  }
      }      

      .sun-container {
	  animation: sun-container 7s infinite ease-in;
      }

      .sun {
      	  animation: sun 7s infinite ease-in;
	  height: 10vh;
      }

      @keyframes sun-container {
	  100%, 0% {
	      left: 25vw;
	  }
	  40% {
	      left: 25vw;
	      animation-timing-function: ease-out;
	  }
	  50% {
	      left: -25vw;
	  }
	  90% {
	      left: 125vw;
	      animation-timing-function: ease-in;
	  }
      }

      @keyframes sun {
	  0%, 100% {
	      top: 5vh;
	  }
	  40% {
	      top: 5vh;
	      animation-timing-function: ease-in;
	  }
	  50% {
	      top: 50vh;
	  }
	  51% {
	      top: 100vh;
	  }
	  89% {
	      top: 100vh;
	  }
	  90% {
	      top: 50vh;
	      animation-timing-function: ease-out;
	  }
      }

      .moon-container {
	  animation: moon-container 7s infinite ease-in;
      }

      .moon {
      	  animation: moon 7s infinite ease-in;
	  height: 10vh;
      }

      @keyframes moon-container {
	  100%, 0% {
	      left: -25vw;
	  }
	  40% {
	      left: 125vw;
	      animation-timing-function: ease-in;
	  }
	  50% {
	      left: 25vw;
	  }
	  90% {
	      left: 25vw;
	      animation-timing-function: ease-out;
	  }
      }

      @keyframes moon {
	  0%, 100% {
	      top: 50vh;
	  }
	  1% {
	      top: 100vh;
	  }
	  39% {
	      top: 100vh;
	  }
	  40% {
	      top: 50vh;
	      animation-timing-function: ease-out;
	  }
	  50% {
	      top: 5vh;
	  }
	  90% {
	      top: 5vh;
	      animation-timing-function: ease-in;
	  }
      }

      body, html {
	  margin: 0;
	  width: 100vw;
	  height: 100vh;
      }

      body {
	  animation: sky 7s infinite ease;
      }

      @keyframes sky {
	  100%, 0%, 40% {
	      background-color: #adf;
	  }
	  50%, 90% {
	      background-color: #44c;
	  }
      }

      .darkness {
      	  animation: darkness 7s infinite ease;
	  background-color: black;
	  width: 100vw;
	  height: 100vh;
      }

      @keyframes darkness {
	  100%, 0%, 40% {
	      opacity: 0;
	  }
	  50%, 90% {
	      opacity: 0.4;
	  }
      }
    </style>
  </head>
  <body>
    <img src="grass.svg" class="grass" alt="grass image"></img>
    <img src="tulip.svg" class="tulip" alt="tulip image"></img>
    <div class="darkness"></div>
    <div class="sun-container"><img class="sun" src="sun.svg" alt="sun image"></img></div>
    <div class="moon-container"><img class="moon" src="moon.svg" alt="moon image"></img></div>
    <img class="text" src="text.svg" alt="Wszystkiego najlepszego z okazji Dnia Mamy"></img>
  </body>
</html>