Description

The FluxImage component represents the smallest part of the slider and displays an image, part of it or a color.

Component

It renders what have to be displayed calculating its size and position automatically.

The component can have the following attributes.

AttributeTypeRequiredDescription
sliderObjecttrueThe VueFlux component responsible of this image
indexNumber, StringtrueIf a number represents the image index of slider and if string of hexadecimal will just paint it with the defined color
cssObjectfalseInitial CSS style, by default sets top 0 and left 0

Example:

<flux-image :slider="slider" :index="1"></flux-image>
<flux-image :slider="slider" :index="'#cccccc'" :css="{opacity: 0.5}"></flux-image>

Methods

MethodParametersDescription
setCsscssObject with the style to be applied directly
transformcssObject with the style to be applied rendering, used to perform the transitions
showShows the image if hidden
hideHides the image