Some fun motion for experimentation

This commit is contained in:
Zach Fox 2019-05-14 11:56:07 -07:00
parent cf46f3c9d4
commit 2080aa6676
2 changed files with 7 additions and 3 deletions
interface/resources/qml/hifi/simplifiedUI

View file

@ -37,12 +37,16 @@ Rectangle {
Rectangle {
id: borderMask
visible: root.isHovering
width: itemPreviewImage.width + 4
width: root.isHovering ? itemPreviewImage.width + 4 : itemPreviewImage.width - 4
height: width
radius: width
anchors.centerIn: itemPreviewImage
color: "#FFFFFF"
Behavior on width {
enabled: true
SmoothedAnimation { velocity: 80 }
}
}
Image {

View file

@ -169,7 +169,7 @@ Rectangle {
Rectangle {
z: -1
id: borderMask
width: avatarButtonImageMouseArea.containsMouse ? avatarButtonImage.width + 4 : avatarButtonImage.width
width: avatarButtonImageMouseArea.containsMouse ? avatarButtonImage.width + 4 : avatarButtonImage.width - 4
height: width
radius: width
anchors.centerIn: avatarButtonImage