/* * Copyright (C) 2011-2015 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authors: * Charles Lindsay */ import QtQuick 2.9 // Sets the target to visible at the startOpacity, animates to the endOpacity. SequentialAnimation { id: fadeInAnimation /*! */ property Item target /*! */ property real startOpacity: 0 /*! */ property real endOpacity: 1 /*! */ property int duration: 200 /*! */ property int easingType: Easing.InQuad PropertyAction { target: fadeInAnimation.target property: "opacity" value: startOpacity } PropertyAction { target: fadeInAnimation.target property: "visible" value: true } NumberAnimation { target: fadeInAnimation.target property: "opacity" to: endOpacity duration: fadeInAnimation.duration easing.type: easingType } }