UI events: Hover
Making an element hoverable in Pose for Vue is a simple matter of setting press
to true
, with associated poses:
posed.div({
hoverable: true,
init: {
scale: 1,
boxShadow: '0px 0px 0px rgba(0,0,0,0)'
},
hover: {
scale: 1.2,
boxShadow: '0px 5px 10px rgba(0,0,0,0.2)'
}
})