18 import Ubuntu.Components 0.1
19 import
"../Components"
23 property real yOffsetAtAnimationStart: units.gu(2)
24 property real progress: 0
25 property int animationDuration: 200
26 default property alias __itemsToAnimate: container.children
28 property bool showing: progress > 0
30 height: childrenRect.height
38 height: childrenRect.height
41 NumberAnimation {
id: opacityAnimation; target: container;
property:
"opacity"; from: 0; to: 1; duration: animationDuration}
42 NumberAnimation {
id: yAnimation; target: container;
property:
"y"; from: yOffsetAtAnimationStart; to: 0; duration: animationDuration}
47 animation: opacityAnimation
48 progress: root.progress
52 progress: root.progress