Skip to content

Commit 0a21ecf

Browse files
committed
chore: delay 1sec to deal with page load delay
1 parent 9f9df1f commit 0a21ecf

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

src/widget/WeatherWidget.tsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,13 @@ export function WeatherWidget({
217217
font-family="system-ui,sans-serif,'Helvetica Neue',Arial"
218218
style="font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;"
219219
>
220-
<rect width="400" height="120" fill="url(#background-gradient)" />
221-
<g class=":uno: an-[fade-in]-ease-out-.4s">
220+
<rect
221+
class=":uno: an-[fade-in]-ease-out-.3s-.7s"
222+
width="400"
223+
height="120"
224+
fill="url(#background-gradient)"
225+
/>
226+
<g class=":uno: an-[fade-in]-ease-out-.4s-1s">
222227
{/* Weather icon */}
223228
<use
224229
href={`#${getWeatherIcon(
@@ -267,7 +272,7 @@ export function WeatherWidget({
267272
</g>
268273
{/* Humidity, Precipitation, Wind and Air Pressure */}
269274
<g>
270-
<g class=":uno: an-[fade-in]-ease-out-.4s-.2s">
275+
<g class=":uno: an-[fade-in]-ease-out-.4s-1.2s">
271276
{/* Humidity */}
272277
<use
273278
href="#i-meteocons-humidity-fill"
@@ -291,7 +296,7 @@ export function WeatherWidget({
291296
</tspan>
292297
</text>
293298
</g>
294-
<g class=":uno: an-[fade-in]-ease-out-.4s-.3s">
299+
<g class=":uno: an-[fade-in]-ease-out-.4s-1.3s">
295300
{/* Precipitation */}
296301
<g>
297302
<use
@@ -354,7 +359,7 @@ export function WeatherWidget({
354359
</g>
355360
)}
356361
</g>
357-
<g class=":uno: an-[fade-in]-ease-out-.4s-.3s">
362+
<g class=":uno: an-[fade-in]-ease-out-.4s-1.3s">
358363
{/* Wind */}
359364
<g>
360365
<use
@@ -419,7 +424,7 @@ export function WeatherWidget({
419424
</g>
420425
{/* Location */}
421426
<g
422-
class=":uno: an-[slide-in-left]-ease-out-.3s"
427+
class=":uno: an-[slide-in-left]-ease-out-1.3s"
423428
mask="url(#location-mask)"
424429
>
425430
<text
@@ -449,14 +454,14 @@ export function WeatherWidget({
449454
{/* Time */}
450455
<g>
451456
<rect
452-
class=":uno: an-[reveal-to-right]-ease-out-.4s"
457+
class=":uno: an-[reveal-to-right]-ease-out-1.4s"
453458
y="94"
454459
width="400"
455460
height="100"
456461
fill="#ffffff"
457462
fill-opacity=".2"
458463
/>
459-
<g class=":uno: an-[slide-in-up]-ease-out-.4s-.1s">
464+
<g class=":uno: an-[slide-in-up]-ease-out-.4s-1.1s">
460465
<text x="12" y="112" font-size="16" fill={theme.text}>
461466
<tspan>{formattedWeekday}</tspan>
462467
</text>
@@ -472,7 +477,7 @@ export function WeatherWidget({
472477
</g>
473478
</g>
474479
{/* Credit. No localization needed. */}
475-
<g class=":uno: an-[fade-in]-ease-out-.4s-1s" lang="en-US">
480+
<g class=":uno: an-[fade-in]-ease-out-.4s-2s" lang="en-US">
476481
<a
477482
href="https://github.com/SegaraRai/weather.svg"
478483
hrefLang="en-US"

0 commit comments

Comments
 (0)