Smoother transition for add review link
This commit is contained in:
parent
3840775ac7
commit
7ce8c32639
2 changed files with 17 additions and 19 deletions
27
src/App.css
27
src/App.css
|
|
@ -125,6 +125,14 @@
|
||||||
height: 18em;
|
height: 18em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.reviewsection {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
padding: 0.1em;
|
||||||
|
/* overflow: hidden; */
|
||||||
|
max-height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.cardchild:hover + .actualreviewdiv {
|
.cardchild:hover + .actualreviewdiv {
|
||||||
transition: 1s;
|
transition: 1s;
|
||||||
transform: rotateY(100);
|
transform: rotateY(100);
|
||||||
|
|
@ -142,12 +150,14 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.reviewheadertext {
|
.reviewheadertext {
|
||||||
margin-bottom: -0.2em;
|
margin-bottom: -0.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cardchild p {
|
.cardchild p {
|
||||||
margin-bottom: -1.5em;
|
margin: 0;
|
||||||
|
padding: 0.1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cardchild a {
|
.cardchild a {
|
||||||
|
|
@ -156,9 +166,7 @@
|
||||||
color: pink;
|
color: pink;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
margin-bottom: 0%;
|
margin-bottom: 0%;
|
||||||
.fadein {
|
transition: opacity 1s ease;
|
||||||
animation: spawntop 1s;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.cardchild span {
|
.cardchild span {
|
||||||
|
|
@ -386,17 +394,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes spawntop {
|
|
||||||
0% {
|
|
||||||
opacity: 0%;
|
|
||||||
transform: translateY(1em);
|
|
||||||
}
|
|
||||||
|
|
||||||
100% {
|
|
||||||
opacity: 100%;
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes shake {
|
@keyframes shake {
|
||||||
0% {
|
0% {
|
||||||
|
|
|
||||||
|
|
@ -41,16 +41,17 @@ export default function Reviews() {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<div class="reviewsection">
|
||||||
|
<h1 class="reviewheadertext">Reviews</h1>
|
||||||
<a
|
<a
|
||||||
style={{
|
style={{
|
||||||
display: ishover() ? "inline" : "none",
|
opacity: ishover() ? '100%': '0%',
|
||||||
|
// visibility: !ishover() ? 'hidden' : 'visible',
|
||||||
}}
|
}}
|
||||||
href="https://discord.com/oauth2/authorize?client_id=1208380910525743134&response_type=token&redirect_uri=https%3A%2F%2Famy.rip%2Freview%2F&scope=identify"
|
href="https://discord.com/oauth2/authorize?client_id=1208380910525743134&response_type=token&redirect_uri=https%3A%2F%2Famy.rip%2Freview%2F&scope=identify"
|
||||||
>
|
>
|
||||||
<p class="fadein">add your reviews here</p>
|
<p class="fadein">add your reviews here</p>
|
||||||
</a>
|
</a>
|
||||||
<h1 class="reviewheadertext">Reviews</h1>
|
|
||||||
<div class="actualreviewdiv">
|
<div class="actualreviewdiv">
|
||||||
{reviews().length > 0 ? (
|
{reviews().length > 0 ? (
|
||||||
reviews()
|
reviews()
|
||||||
|
|
@ -64,7 +65,7 @@ export default function Reviews() {
|
||||||
<div>Loading reviews...</div>
|
<div>Loading reviews...</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue