Skip to content

Commit

Permalink
feat: add title view-transition-name
Browse files Browse the repository at this point in the history
  • Loading branch information
trungvose committed Jul 14, 2024
1 parent e076bb1 commit 52efd72
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
11 changes: 9 additions & 2 deletions apps/angular-spotify/src/custom/_view-transitions.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
.with-view-transition as-media-cover {
view-transition-name: media-cover;
.with-view-transition {
as-media-cover {
view-transition-name: media-cover;
}

h2 {
view-transition-name: media-title;
}
}

@keyframes spin {
0% {
transform: rotate(0deg);
}

100% {
transform: rotate(360deg);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
min-height: 250px;
max-height: 450px;
gap: 24px;
grid-template-columns: minmax(120px, 192px) 1fr;
grid-template-columns: minmax(160px, 240px) 1fr;
align-items: flex-end;
@apply grid pb-6;
}
Expand Down
4 changes: 2 additions & 2 deletions libs/web/shared/ui/media/src/lib/card.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
</as-play-button>
</div>
<div class="card-body">
<div class="card-title font-bold text-white ellipsis-one-line">
<h2 class="card-title font-bold text-white ellipsis-one-line">
{{ title }}
</div>
</h2>
<div class="card-description text-description">
{{ description }}
</div>
Expand Down

0 comments on commit 52efd72

Please sign in to comment.