Topic: How do I generate a carousel multi item dinamically with x elements per slide??(Angular 4)
Juan Letamendia asked 7 years ago
Start your code here <mdb-carousel [isControls]="true" class="carousel-multi-item multi-animation" [type]="'carousel-multi-item'" [animation]="'slide'"> <!--First slide--> <mdb-slide> <div class="col-md-4"> <div class="card"> <img class="img-fluid" src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20(34).jpg" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Card title</h4> <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p> <a href="#" class="btn btn-primary waves-light" mdbRippleRadius>Button</a> </div> </div> </div> <div class="col-md-4 clearfix d-none d-md-block"> <div class="card"> <img class="img-fluid" src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20(18).jpg" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Card title</h4> <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p> <a href="#" class="btn btn-primary waves-light" mdbRippleRadius>Button</a> </div> </div> </div> <div class="col-md-4 clearfix d-none d-md-block"> <div class="card"> <img class="img-fluid" src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20(35).jpg" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Card title</h4> <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p> <a href="#" class="btn btn-primary waves-light" mdbRippleRadius>Button</a> </div> </div> </div> </mdb-slide> <!--/First slide--> <!--Second slide--> <mdb-slide> <div class="col-md-4"> <div class="card"> <img class="img-fluid" src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20(60).jpg" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Card title</h4> <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p> <a href="#" class="btn btn-primary waves-light" mdbRippleRadius>Button</a> </div> </div> </div> <div class="col-md-4 clearfix d-none d-md-block"> <div class="card"> <img class="img-fluid" src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20(47).jpg" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Card title</h4> <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p> <a href="#" class="btn btn-primary waves-light" mdbRippleRadius>Button</a> </div> </div> </div> <div class="col-md-4 clearfix d-none d-md-block"> <div class="card"> <img class="img-fluid" src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20(48).jpg" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Card title</h4> <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p> <a href="#" class="btn btn-primary waves-light" mdbRippleRadius>Button</a> </div> </div> </div> </mdb-slide> <!--/Second slide--> <!--Third slide--> <mdb-slide> <div class="col-md-4"> <div class="card"> <img class="img-fluid" src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20(53).jpg" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Card title</h4> <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p> <a href="#" class="btn btn-primary waves-light" mdbRippleRadius>Button</a> </div> </div> </div> <div class="col-md-4 clearfix d-none d-md-block"> <div class="card"> <img class="img-fluid" src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20(45).jpg" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Card title</h4> <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p> <a href="#" class="btn btn-primary waves-light" mdbRippleRadius>Button</a> </div> </div> </div> <div class="col-md-4 clearfix d-none d-md-block"> <div class="card"> <img class="img-fluid" src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20(51).jpg" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Card title</h4> <p>Some quick example text to build on the card title and make up the bulk of the card's content.</p> <a href="#" class="btn btn-primary waves-light" mdbRippleRadius>Button</a> </div> </div> </div> </mdb-slide> <!--/Third slide--> </mdb-carousel>
Damian Gemza staff answered 7 years ago
matdiy pro answered 7 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No