VueFlux
Home
  • v5
  • v6
  • v7
Demos
GitHub
Home
  • v5
  • v6
  • v7
Demos
GitHub
  • Overview
  • Changelog
  • Installation and usage
  • Templating
  • SSR with Nuxt
  • Components
    • VueFlux
    • FluxParallax
    • FluxCaption
    • FluxControls
    • FluxIndex
    • FluxPagination
    • FluxImage
    • FluxWrapper
    • FluxCube
    • FluxGrid
    • FluxVortex
    • FluxThumb
  • Transitions
    • Blinds 2D
    • Blinds 3D
    • Blocks 1
    • Blocks 2
    • Book
    • Camera
    • Concentric
    • Cube
    • Explode
    • Fade
    • Fall
    • Kenburn
    • Round 1
    • Round 2
    • Slide
    • Swipe
    • Warp
    • Waterfall
    • Wave
    • Zip
  • Custom transitions

Description

It is a default component to display controls with buttons to display previous, next, play and pause.

The slot can be overwritten with custom controls.

Component

It will display the buttons when no transition is active and mouse over. Will not be displayed in touchable screens.

The component can have the following attributes.

AttributeTypeRequiredDescription
sliderObjectfalseThe VueFlux component

Example of controls inside vue-flux

<vue-flux :options="fluxOptions" :images="fluxImages" :transitions="fluxTransitions">
    <flux-controls slot="controls"></flux-controls>
</vue-flux>
import { VueFlux, FluxControls, Transitions } from 'vue-flux';

export default {
   components: {
      VueFlux,
      FluxControls
   },

   data: () => ({
      fluxOptions: {
         autoplay: true
      },
      fluxImages: [ 'URL1', 'URL2', 'URL3' ],
      fluxTransitions: Transitions
   })
}

Example of controls outside vue-flux

<vue-flux
   :options="fluxOptions"
   :images="fluxImages"
   :transitions="fluxTransitions"
   ref="slider">
</vue-flux>

<flux-controls v-if="mounted" :slider="$refs.slider"></flux-controls>
import { VueFlux, FluxControls, Transitions } from 'vue-flux';

export default {
   components: {
      VueFlux,
      FluxControls
   },

   data: () => ({
      mounted: false,
      fluxOptions: {
         autoplay: true
      },
      fluxImages: [ 'URL1', 'URL2', 'URL3' ],
      fluxTransitions: Transitions
   }),

   mounted() {
      this.mounted = true;
   }
}
Last Updated: 10/24/23, 4:45 PM
Prev
FluxCaption
Next
FluxIndex