{{ newsDetails.description }}
diff --git a/src/app/home-details/home-details.page.scss b/src/app/home-details/home-details.page.scss
index 8ace88b..8053944 100644
--- a/src/app/home-details/home-details.page.scss
+++ b/src/app/home-details/home-details.page.scss
@@ -43,19 +43,49 @@
height: 40%;
overflow: hidden;
+ h4 {
+ font-size: 1.2rem;
+ margin: 0px;
+ line-height: 1.5;
+ font-weight: 500;
+ transition: opacity 0.1s;
+ padding: 10px 0;
+ position: absolute;
+ color: white;
+ bottom: 45px;
+ left: 6%;
+ width: 88%;
+ animation: fadeInFromBottom 0.5s forwards;
+ }
+
button {
width: 40px;
height: 40px;
position: absolute;
- bottom: 10px;
- right: 10px;
+ top: calc(50% - 20px);
+ left: calc(50% - 20px);
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(var(--brand-red-rgb), 0.5);
border-radius: 50%;
- transform: translate(calc(-50vw + 40px), -15vh);
-
+ animation: popin 0.3s forwards;
+ animation-delay: 0.5s;
+ transform: scale(0);
+
+ @keyframes popin {
+ 0% {
+ transform: scale(0);
+ }
+
+ 50% {
+ transform: scale(1.4);
+ }
+
+ 100% {
+ transform: scale(1);
+ }
+ }
ion-icon {
color: white;
@@ -82,7 +112,7 @@
.content {
background-color: white;
- padding: 0px 5% 5% 5%;
+ padding: 5%;
margin: 0 auto;
border-radius: 0px;
transition: border-radius 0.3s, transform 0.3s, width 0.3s, margin 0.3s, box-shadow 0.3s;
@@ -107,17 +137,6 @@
}
}
-h4 {
- font-size: 1.2rem;
- margin: 0px;
- line-height: 1.5;
- font-weight: 500;
- color: var(--brand-black);
- transition: opacity 0.1s;
- background-color: white;
- padding: 10px 0;
-}
-
.details {
margin: 0px;
font-size: 0.9rem;
diff --git a/src/app/home/home.page.html b/src/app/home/home.page.html
index 527d6cc..c36e334 100644
--- a/src/app/home/home.page.html
+++ b/src/app/home/home.page.html
@@ -14,9 +14,10 @@
-