Because images can take a few seconds to load (or not at all), use the image
container to specify a precisely sized
container so that your layout isn't broken because of image loading or image errors - Bulma image.
Carousel
A Slideshow for cycling images in confined spaces
# Custom
# Arrow
# Progress
# Indicator
Some source by Picsum and Images from Unsplash.
# Custom Indicators
indicator-custom
If want custom indicator to stay big, use
is-medium
on indicator-custom-size
# Switch like a gallery
You may also want to add is-clipped
modifier to a containing element (usually html
) to stop scroll overflow.
# Carousel List
An imposing carousel list to showcase viewer something.
# Custom With Card
# Custom as an indicators
With Breakpoint and Switch like a Gallery.
# API
Carousel
Name | Description | Type | Values | Default |
---|---|---|---|---|
v-model | Binding value | Number | — | 0 |
animated | Transition effect | String | fade , slide | slide |
interval | Interval of the autoplay , in milliseconds | Number | — | 3500 |
has-drag | Toggle touch dragging, when touch not detected. auto switch mouse dragging | Boolean | — | true |
autoplay | Whether automatically loop the slides | Boolean | — | true |
pause-hover | Pause carousel when autoplay and mouse enter | Boolean | — | true |
pause-info | Show infomation pause when autoplay and mouse enter | Boolean | — | true |
pause-info-type | Type (color) of the pause-info, optional | String | is-white , is-black , is-light ,
is-dark , is-primary , is-info , is-success ,
is-warning , is-danger ,
and any other colors you've set in the $colors list on Sass | is-white |
pause-text | Text when pause | String | — | Pause |
arrow | Display the "next" and "prev" action | Boolean | — | true |
arrow-both | Display the "next" and "prev" action when first or last item | Boolean | — | true |
arrow-hover | Display the "next" and "prev" action when hover, but hidden on mobile | Boolean | — | true |
icon-pack | Icon pack to use | String | mdi , fa , fas , far , fab , fad , fal | mdi |
icon-size | Arrow icon size, optional | String | is-small , is-medium , is-large | — |
icon-prev | Icon to use for previous arrow | String | — | chevron-left |
icon-next | Icon to use for next arrow | String | — | chevron-right |
indicator | Display the indicator for jumping to specific item | Boolean | — | true |
indicator-background | Added background for indicator | Boolean | — | false |
indicator-custom | use when the image is more than 6 so that the indicator is not too small | Boolean | — | false |
indicator-custom-size | image size on the indicator when the indicator-custom is used | String | is-small , is-medium | is-small |
indicator-inside | Display the indicator inside on carousel | Boolean | — | true |
indicator-mode | Trigger for action indicator | String | click , hover | click |
indicator-position | Position indicator only when indicator-inside | String | is-bottom , is-top | is-bottom |
indicator-style | Style for indicator of carousel | String | is-boxes , is-dots , is-lines | is-dots |
overlay | Switch like a gallery | Boolean | — | false |
progress | Display the progress item of carousel | Boolean | — | false |
progress-type | Type (color) of the progress, optional | String | is-white , is-black , is-light ,
is-dark , is-primary , is-info , is-success ,
is-warning , is-danger ,
and any other colors you've set in the $colors list on Sass | is-primary |
with-carousel-list | use this when indicator custom with b-carousel-list | Boolean | — | false |
Carousel List
Name | Description | Type | Values | Default |
---|---|---|---|---|
v-model | Binding value | Number | — | 0 |
data | Carousel-list data | Array | — | — |
config | An object to pass all configs | Object | — | — |
has-drag | Toggle touch dragging, when touch not detected. auto switch mouse dragging | Boolean | — | true |
has-grayscale | Give a effect grayscale on img | Boolean | — | false |
has-opacity | Give a effect opacity on img | Boolean | — | false |
repeat | Back to value 0 when item active same with total data | Boolean | — | false |
items-to-show | count of items to showed per view (support a decimal). | Number | — | true |
items-to-list | count of items to list when use navigation buttons | Number | 1-5 | 1 |
as-indicator | Switch mode to indicator for carousel | Boolean | — | false |
refresh | Refresh for overlay carousel | Boolean | — | false |
arrow | Display the "next" or "prev" action when first or last item | Boolean | — | true |
arrow-hover | Display Arrow action when hover, but hidden on mobile | Boolean | — | true |
icon-pack | Icon pack to use | String | mdi , fa , fas , far , fab , fad , fal | mdi |
icon-size | Arrow icon size, optional | String | is-small , is-medium , is-large | — |
icon-prev | Icon to use for previous arrow | String | — | chevron-left |
icon-next | Icon to use for next arrow | String | — | chevron-right |
# Variables
You can use these variables to customize this component.
Name | Description | Default |
---|---|---|
$carousel-min-height | The carousel default height before image loaded | 120px |
$carousel-arrow-background | The carousel arrow background | $white |
$carousel-arrow-color | The carousel color border | $primary |
$carousel-arrow-icon-spaced | The carousel arrow icon spaced left and right | 1.5rem |
$carousel-arrow-top | The carousel position by top | 50% |
$carousel-indicator-background | The carousel indicator background | rgba($black, 0.45) |
$carousel-indicator-border | The carousel indicator color border | $primary |
$carousel-indicator-color | The carousel indicator background | $white |
$carousel-indicator-spaced | The carousel indicator spaced | .5rem |
$carousel-overlay-background | The carousel background when overlay | rgba($black, 0.86) |
$carousel-overlay-z | The carousel z-index for overlay | 40 |
This page is open source. Noticed a typo or something's unclear?