components icon indicating copy to clipboard operation
components copied to clipboard

Image carousel component

Open HegdeSach opened this issue 9 years ago • 8 comments

Bug, feature request, or proposal:

Proposal

What is the expected behavior?

Carousel component is a slideshow for cycling through a series of images.

Features :

  1. Fit images inside carousel slide by maintaining aspect ratio
  2. Place image at the center of the slide (Looks good if the image is too small compare to slide)
  3. Navigation control to change the slide
  4. View indicators to show current slide, total no of slides
  5. Loop variable to handle whether to allow slide change in loop
  6. Autoplay of slides. Autoplay should stop on user interactivity
  7. Slide change on mouse scroll on slides

Carousel takes following inputs, slides : array of object contains image path,alt text and caption for the image slideHeight : Carousel slide height slideWidth : Carousel slide width startIndex : index number to show perticular slide onload of carousel (Optional) view : slide indicators (Fraction, Dots and None) loop : allows infinite slide scrolling (Optional) show/hide nav control (Optional) autoplay (Optional) Mouse scroll slide change (Optional)

Methods: showPrevSlide() showNextSlide() showSlide(index)

Events: slideChange slideClick autoplayStart autoplayStop

Is there anything else we should know?

Can I get design principle for the Carousel component?

I have taken care of the above features. Can't I contribute in building this for Angular material?

HegdeSach avatar Jul 11 '17 07:07 HegdeSach

Hope is like: http://idangero.us/swiper/demos/#.WWSMLoVOJaQ

briancvn avatar Jul 11 '17 08:07 briancvn

https://github.com/angular/material2/issues/1081

willshowell avatar Jul 11 '17 13:07 willshowell

We have no plans to add any kind of carousel component.

jelbourn avatar Jul 11 '17 18:07 jelbourn

how can you compete with bootstrap then

pranaymokal avatar Feb 12 '18 12:02 pranaymokal

is there any reason to not to add one ?

yuvarajvemula avatar May 10 '18 12:05 yuvarajvemula

I'm using Swiper, but a carousel based on CDK touch events would be like MUCH smaller in bundle size than Swiper.

@pranaymokal Bootstrap's carousel is bulls**it, owlCarousel works and looks better with Bootstrap than their own.

@jelbourn not even any kind of CDK helper for building one?

odahcam avatar Sep 06 '18 13:09 odahcam

You get carousel if you hide tab-header in tab control (keeping tab body only).

stasberkov avatar Jun 04 '19 14:06 stasberkov

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.