Skip to content

Commit 936fc59

Browse files
committed
feat(welcome): animate background on landing page
1 parent c24d732 commit 936fc59

File tree

3 files changed

+61
-3
lines changed

3 files changed

+61
-3
lines changed

public/css/app.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,6 +1524,42 @@ select {
15241524
display: none !important;
15251525
}
15261526

1527+
/* ANIMATED BACKGROUND */
1528+
.bg-animated {
1529+
background: linear-gradient(-45deg, #441580, #055e6b, #036042);
1530+
background-size: 400% 400%;
1531+
-webkit-animation: gradient 20s ease infinite;
1532+
animation: gradient 20s ease infinite;
1533+
}
1534+
1535+
@-webkit-keyframes gradient {
1536+
0% {
1537+
background-position: 0% 50%;
1538+
}
1539+
1540+
50% {
1541+
background-position: 100% 50%;
1542+
}
1543+
1544+
100% {
1545+
background-position: 0% 50%;
1546+
}
1547+
}
1548+
1549+
@keyframes gradient {
1550+
0% {
1551+
background-position: 0% 50%;
1552+
}
1553+
1554+
50% {
1555+
background-position: 100% 50%;
1556+
}
1557+
1558+
100% {
1559+
background-position: 0% 50%;
1560+
}
1561+
}
1562+
15271563
.hero {
15281564
background-image: url('/images/map.jpg');
15291565
background-size: cover;
@@ -1720,3 +1756,4 @@ select {
17201756
grid-column: span 1 / span 1;
17211757
}
17221758
}
1759+

resources/css/app.css

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,27 @@
66
display: none !important;
77
}
88

9+
/* ANIMATED BACKGROUND */
10+
.bg-animated {
11+
background: linear-gradient(-45deg, #441580, #055e6b, #036042);
12+
background-size: 400% 400%;
13+
animation: gradient 20s ease infinite;
14+
}
15+
16+
@keyframes gradient {
17+
0% {
18+
background-position: 0% 50%;
19+
}
20+
21+
50% {
22+
background-position: 100% 50%;
23+
}
24+
25+
100% {
26+
background-position: 0% 50%;
27+
}
28+
}
29+
930
.hero {
1031
background-image: url('/images/map.jpg');
1132
background-size: cover;
@@ -32,4 +53,4 @@
3253

3354
.changelog ul li {
3455
@apply ml-8 text-gray-300
35-
}
56+
}

resources/views/welcome.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
<div class="grid grid-cols-2 md:grid-cols-3 gap-8">
77
<div class="col-span-2 md:col-span-3">
8-
<div class="rounded-lg" style="background: linear-gradient(-45deg, #441580, #055e6b);">
9-
<div class="rounded-lg lg:text-center p-6 lg:py-24">
8+
<div>
9+
<div class="rounded-lg lg:text-center p-6 lg:py-24 bg-animated">
1010
<h1 class="text-3xl lg:text-5xl font-bold">
1111
Generate complex map markers on the fly.
1212
</h1>

0 commit comments

Comments
 (0)