-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: set mask percentage to the marquee-cards
- Loading branch information
Showing
4 changed files
with
43 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
src/app/shared/components/marquee-cards/marquee-cards.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
<ngx-fast-marquee direction="right" [speed]="100" [pauseOnHover]="true"> | ||
<ngx-fast-marquee | ||
direction="right" | ||
[speed]="100" | ||
[pauseOnHover]="true" | ||
[maskPercentage]="40" | ||
> | ||
<app-profile-card class="mx-4" /> | ||
</ngx-fast-marquee> |
36 changes: 33 additions & 3 deletions
36
src/app/shared/components/marquee-line-rotation/marquee-line-rotation.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,35 @@ | ||
<div class="h-[30vh] border border-zinc-400"></div> | ||
<div class="h-[30vh]"></div> | ||
<div | ||
class="absolute bottom-0 right-0 w-[40vw] h-[30vh] bg-slate-50 overflow-hidden" | ||
class="absolute bottom-0 right-0 w-[40vw] h-[30vh] bg-neutral-700" | ||
style="clip-path: polygon(80% 0, 100% 0%, 100% 100%, 0% 100%)" | ||
></div> | ||
> | ||
<div | ||
class="absolute inset-0 bg-zinc-900 overflow-hidden" | ||
style=" | ||
clip-path: polygon( | ||
calc(80% + 4px) 10px, | ||
calc(100% - 10px) 10px, | ||
calc(100% - 10px) calc(100% - 10px), | ||
32px calc(100% - 10px) | ||
); | ||
" | ||
> | ||
<ngx-fast-marquee class="absolute left-0 right-0 bottom-0" [speed]="200"> | ||
<div class="px-4">Item</div> | ||
<div class="px-4">Item</div> | ||
<div class="px-4">Item</div> | ||
<div class="px-4">Item</div> | ||
<div class="px-4">Item</div> | ||
<div class="px-4">Item</div> | ||
<div class="px-4">Item</div> | ||
<div class="px-4">Item</div> | ||
<div class="px-4">Item</div> | ||
<div class="px-4">Item</div> | ||
<div class="px-4">Item</div> | ||
<div class="px-4">Item</div> | ||
<div class="px-4">Item</div> | ||
<div class="px-4">Item</div> | ||
<div class="px-4">Item</div> | ||
</ngx-fast-marquee> | ||
</div> | ||
</div> |
3 changes: 2 additions & 1 deletion
3
src/app/shared/components/marquee-line-rotation/marquee-line-rotation.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters