You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nothing/src/app/carousel/carousel.component.html

20 lines
975 B

<ng-container *ngIf="template && slides">
<div class="carousel">
<div class="window" [style.translate]="translation()" #carouselWindow
[@direction]="{value: this.animation, params: {directionTime: directionTime}}" [ngStyle]="style()" (@direction.done)="onAnimationEnd($event)" (@direction.start)="onAnimationStart($event)">
<span hidden>current: {{current}}</span>
<ng-container *ngFor="let visible of visibleSlides">
<div [class]="vertical ? 'slide-vertical' : 'slide'" #slideElement
[attr.data-slideIndex]="visible.index"
[ngStyle]="vertical ? {'grid-row-start':visible.index + 1} : {'grid-column-start':visible.index + 1}">
<ng-container *ngTemplateOutlet="template!; context: { $implicit: slides[visible.index] }">
</ng-container>
</div>
</ng-container>
</div>
</div>
</ng-container>