Skip to content

Transitions for everything #1992

@lbineau

Description

@lbineau

Hi,

I see that transitions are just for show/hide an element. I would it be easy to make it available on any property so the transition would play between changing state ? (lets call it state property)
Example :

<div v-state="state" transition="my-transition"></div>
Vue.transition('expand', {

  beforeStateEnter: function (el) {
    el.textContent = 'beforeEnter'
  },
  stateEnter: function (el) {
    el.textContent = 'enter'
  },
...

})

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions