VueFlux
Home
  • v5
  • v6
  • v7
Demos
GitHub
Home
  • v5
  • v6
  • v7
Demos
GitHub
  • Overview
  • Changelog
  • Installation and usage
  • Options VS Composition
  • SSR with Nuxt
  • Resources
    • Img
    • Video
    • Component
  • Components
    • VueFlux
    • FluxButton
    • FluxCube
    • FluxGrid
    • FluxImage
    • FluxParallax
    • FluxTransition
    • FluxVortex
    • FluxWrapper
  • Complements
    • FluxCaption
    • FluxControls
    • FluxIndex
    • FluxPagination
    • FluxPreloader
  • 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

FluxTransition

Description

Component to display a transition animation between two resources.

Demo

Props

interface FluxTransitionProps {
	size: Size;
	transition: Object;
	from: Resource;
	to: Resource;
	displayComponent?: null | any;
	options?: Object;
}

size

This size is the width and height in pixels that the component will have.

transition

The component that performs the animation.

Tips

Check included transitions or custom transitions for more details.

from

This attribute will define transition starting resource.

to

This attribute will define transition ending resource.

options

The transition options to overwrite the transition parameters.

The available options depend on transition, so check the transitions to know which ones can be modified.

For custom transitions, will apply the same.

Methods

// This method will call the method `onPlay`of the transition component, starting the transition.
async start(): void

Emits

NameParametersDescription
readytransition: Object, from: Resource, to: Resource, options: Object, duration: numberWill be fired when the transition is ready to play because the components are rendered
starttransition: Object, from: Resource, to: Resource, options: Object, duration: numberWill let know when transition has started
endtransition: Object, from: Resource, to: Resource, options: Object, duration: numberFired when transition ended
Last Updated: 12/15/23, 3:45 PM
Prev
FluxParallax
Next
FluxVortex