i am trying to develop an image carousel using angular material but i couldn't find any helpful resource.
I tried out https://github.com/gbrlsnchs/material2-carousel but didn't work and the code is complex.
Here is example for you
<ng-template #slide let-slide>
<div [ngStyle]="{
'background-size': 'cover',
'background-image': 'url(' + slide.url + ')',
'background-repeat': 'no-repeat',
'width': '100%',
'height': '100%'
}">
</div>
</ng-template>
<ng-template #thumbnail let-slide>
<div [ngStyle]="{
'background-size': 'cover',
'background-image': 'url(' + slide.url + ')',
'background-repeat': 'no-repeat',
'background-position': 'center center',
'width': '100%',
'height': '100%'
}"></div>
</ng-template>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With