summaryrefslogtreecommitdiffhomepage
path: root/app/assets/stylesheets/application.tailwind.css
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-05-15 20:35:42 -0400
committerrealtradam <[email protected]>2024-05-15 20:35:42 -0400
commit15bf3d5848aa1b7aeb5177f8b9ca84eb9ff5799f (patch)
treed5c9e7eb61de935e458f0af1d1e2b81d641e0277 /app/assets/stylesheets/application.tailwind.css
parentd2ad5924bce17e3b07ee0af86a8739559dac3b35 (diff)
downloadgameHolster-15bf3d5848aa1b7aeb5177f8b9ca84eb9ff5799f.tar.gz
gameHolster-15bf3d5848aa1b7aeb5177f8b9ca84eb9ff5799f.zip
more styling improvements and gamecards added
Diffstat (limited to 'app/assets/stylesheets/application.tailwind.css')
-rw-r--r--app/assets/stylesheets/application.tailwind.css100
1 files changed, 97 insertions, 3 deletions
diff --git a/app/assets/stylesheets/application.tailwind.css b/app/assets/stylesheets/application.tailwind.css
index c6f1a68..58d9164 100644
--- a/app/assets/stylesheets/application.tailwind.css
+++ b/app/assets/stylesheets/application.tailwind.css
@@ -11,18 +11,112 @@
}
*/
+.gameCard {
+ aspect-ratio: 5/7;
+ width: 300px;
+ position: relative;
+ display: flex;
+ justify-content: center;
+ align-items: flex-end;
+ perspective: 2500px;
+}
+
+.gameCardCoverImg {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+}
+
+.gameCardWrapper {
+ transition: all 0.5s;
+ position: absolute;
+ width: 100%;
+ z-index: -1;
+ box-shadow: -15px 15px 32px -8px rgba(0, 0, 0, 0.75)
+}
+
+.gameCard:hover .gameCardWrapper {
+ transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0);
+ box-shadow: -10px 35px 32px -8px rgba(0, 0, 0, 0.75);
+ -webkit-box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
+ -moz-box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
+}
+
+.gameCardWrapper::before,
+.gameCardWrapper::after {
+ content: "";
+ opacity: 0;
+ width: 100%;
+ height: 80px;
+ transition: all 0.5s;
+ position: absolute;
+ left: 0;
+}
+.gameCardWrapper::before {
+ top: 0;
+ height: 100%;
+ background-image: linear-gradient(
+ to top,
+ transparent 46%,
+ rgba(12, 13, 19, 0.5) 68%,
+ rgba(12, 13, 19) 97%
+ );
+}
+.gameCardWrapper::after {
+ bottom: 0;
+ opacity: 1;
+ background-image: linear-gradient(
+ to bottom,
+ transparent 46%,
+ rgba(12, 13, 19, 0.5) 68%,
+ rgba(12, 13, 19) 97%
+ );
+}
+
+.gameCard:hover .gameCardWrapper::before,
+.gameCardWrapper::after {
+ opacity: 1;
+}
+
+.gameCard:hover .gameCardWrapper::after {
+ height: 120px;
+}
+.gameTitleImg {
+ width: 100%;
+ transition: transform 0.5s;
+}
+.gameCard:hover .gameTitleImg {
+ transform: translate3d(0%, -50px, 100px);
+}
+
+.gameCharacterImg {
+ width: 100%;
+ opacity: 0;
+ transition: all 0.5s;
+ position: absolute;
+ z-index: -1;
+}
+
+.gameCard:hover .gameCharacterImg {
+ opacity: 1;
+ transform: translate3d(0%, -30%, 100px);
+}
@keyframes pan {
0% {
background-position: 0% 0%;
}
100% {
- background-position: 200% -100%;
+ background-position: 340px -170px;
}
}
#radial-wrap {
- background: linear-gradient(90deg, rgba(251,191,36,1) 0%, rgba(251,191,36,0) 20%, rgba(251,191,36,0) 80%, rgba(251,191,36,1) 100%);
+ background: linear-gradient(90deg, rgba(251,191,36,1) 1%, rgba(251,191,36,0) 10%, rgba(251,191,36,0) 90%, rgba(251,191,36,1) 99%);
+}
+
+.button:hover::before {
+ width: 5000px;
}
@keyframes buttonSpin {
@@ -43,7 +137,7 @@
@layer utilities {
.star {
- animation: pan 360s linear infinite;
+ animation: pan 80s linear infinite;
}
.sawtooth-right {
clip-path: polygon(0% -1%, -1% 100.0%, 101% 98.0%, -1% 96.0%, 101% 94.0%, -1% 92.0%, 101% 90.0%, -1% 88.0%, 101% 86.0%, -1% 84.0%, 101% 82.0%, -1% 80.0%, 101% 78.0%, -1% 76.0%, 101% 74.0%, -1% 72.0%, 101% 70.0%, -1% 68.0%, 101% 66.0%, -1% 64.0%, 101% 62.0%, -1% 60.0%, 101% 58.0%, -1% 56.0%, 101% 54.0%, -1% 52.0%, 101% 50.0%, -1% 48.0%, 101% 46.0%, -1% 44.0%, 101% 42.0%, -1% 40.0%, 101% 38.0%, -1% 36.0%, 101% 34.0%, -1% 32.0%, 101% 30.0%, -1% 28.0%, 101% 26.0%, -1% 24.0%, 101% 22.0%, -1% 20.0%, 101% 18.0%, -1% 16.0%, 101% 14.0%, -1% 12.0%, 101% 10.0%, -1% 8.0%, 101% 6.0%, -1% 4.0%, 101% 2.0%);