Add important fix

master
Max Ehrlicher-Schmidt 4 years ago
parent 8c987c5ba7
commit 5e51a8d5da

@ -1,7 +1,7 @@
<div class="table-page-wrapper"> <div class="table-page-wrapper">
<h1 class="headline" *ngIf="headline"> <h1 class="headline" *ngIf="headline">
{{ headline }} {{ headline }}
<mat-icon>{{ headlineIconName }}</mat-icon> <mat-icon id="table-icon" (click)="$event.target.classList.add('drive')">{{ headlineIconName }}</mat-icon>
</h1> </h1>
<div class="table-control"> <div class="table-control">
<!--<button <!--<button

@ -9,6 +9,7 @@
margin-top: 0.25em; margin-top: 0.25em;
.mat-icon { .mat-icon {
margin-left: 8px; margin-left: 8px;
user-select: none;
} }
} }
.table-control { .table-control {
@ -79,3 +80,29 @@
} }
} }
} }
.drive {
animation-name: translate; // Name der Animation
animation-duration: 6s; // Dauer der Animation
animation-iteration-count: 1; // Anzahl der Wiederholungen
}
@keyframes translate {
0% {
transform: translateX(0px);
}
69% {
visibility: hidden;
transform: translateX(100vw);
}
70% {
visibility: hidden;
transform: translateX(-100vw);
}
71% {
transform: translateX(-100vw);
}
100% {
transform: translateX(0px);
}
}

Loading…
Cancel
Save