Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,12 @@
transform: translateY(0);
}
}

.toggle-btn {
background: transparent;
border: 1px solid var(--primary-contrast, black);
color: var(--primary-contrast, black);
padding: 10px 24px;
border-radius: 8px;
cursor: pointer;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- #docplaster -->
<h2><code>animate.enter</code> Binding Example</h2>

<button type="button" (click)="toggle()">Toggle Element</button>
<button type="button" class="toggle-btn" (click)="toggle()">Toggle Element</button>

@if (isShown()) {
<div class="enter-container" [animate.enter]="enterClass()">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,12 @@
transform: translateY(0);
}
}

.toggle-btn {
background: transparent;
border: 1px solid var(--primary-contrast, black);
color: var(--primary-contrast, black);
padding: 10px 24px;
border-radius: 8px;
cursor: pointer;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- #docplaster -->
<h2><code>animate.enter</code> Example</h2>

<button type="button" (click)="toggle()">Toggle Element</button>
<button type="button" class="toggle-btn" (click)="toggle()">Toggle Element</button>

@if (isShown()) {
<div class="enter-container" animate.enter="enter-animation">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,16 @@
.leaving {
opacity: 0;
transform: translateY(20px);
transition: opacity 500ms ease-out, transform 500ms ease-out;
transition:
opacity 500ms ease-out,
transform 500ms ease-out;
}

.toggle-btn {
background: transparent;
border: 1px solid var(--primary-contrast, black);
color: var(--primary-contrast, black);
padding: 10px 24px;
border-radius: 8px;
cursor: pointer;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- #docplaster -->
<h2><code>animate.leave</code> Binding Example</h2>

<button type="button" (click)="toggle()">Toggle Element</button>
<button type="button" class="toggle-btn" (click)="toggle()">Toggle Element</button>

@if (isShown()) {
<div class="leave-container" [animate.leave]="farewell()">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,16 @@
.leaving {
opacity: 0;
transform: translateY(20px);
transition: opacity 500ms ease-out, transform 500ms ease-out;
transition:
opacity 500ms ease-out,
transform 500ms ease-out;
}

.toggle-btn {
background: transparent;
border: 1px solid var(--primary-contrast, black);
color: var(--primary-contrast, black);
padding: 10px 24px;
border-radius: 8px;
cursor: pointer;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- #docplaster -->
<h2><code>animate.leave</code> Function Example</h2>

<button type="button" (click)="toggle()">Toggle Element</button>
<button type="button" class="toggle-btn" (click)="toggle()">Toggle Element</button>

@if (isShown()) {
<div class="leave-container" (animate.leave)="leavingFn($event)">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,16 @@
.leaving {
opacity: 0;
transform: translateY(20px);
transition: opacity 500ms ease-out, transform 500ms ease-out;
transition:
opacity 500ms ease-out,
transform 500ms ease-out;
}

.toggle-btn {
background: transparent;
border: 1px solid var(--primary-contrast, black);
color: var(--primary-contrast, black);
padding: 10px 24px;
border-radius: 8px;
cursor: pointer;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- #docplaster -->
<h2><code>animate.leave</code> Example</h2>

<button type="button" (click)="toggle()">Toggle Element</button>
<button type="button" class="toggle-btn" (click)="toggle()">Toggle Element</button>

@if (isShown()) {
<div class="leave-container" animate.leave="leaving">
Expand Down