Back to Popmotion

UI events: Focus

packages/popmotion-pose/docs/examples/vue/vue-ui-events-focus.md

8.7.1468 B
Original Source

UI events: Focus

Making an element focusable in Pose for Vue is a simple matter of setting press to true, with associated poses:

javascript
posed.input({
  focusable: true,
  init: {
    color: '#aaa',
    outlineWidth: '0px',
    outlineOffset: '0px',
    scale: 1
  },
  focus: {
    color: '#000',
    outlineWidth: '12px',
    outlineOffset: '5px',
    outlineColor: '#AB36FF',
    scale: 1.2
  }
})
<CodeSandbox id="k3j0q867v7" height="400" vue />