extract PulseAnimation component from 3 modules
This commit is contained in:
parent
8d76df6ef5
commit
b5be146619
5 changed files with 29 additions and 60 deletions
20
shell/modules/PulseAnimation.qml
Normal file
20
shell/modules/PulseAnimation.qml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import QtQuick
|
||||
|
||||
SequentialAnimation {
|
||||
id: root
|
||||
loops: Animation.Infinite
|
||||
|
||||
property real minOpacity: 0.4
|
||||
property int halfDuration: 400
|
||||
|
||||
NumberAnimation {
|
||||
to: root.minOpacity
|
||||
duration: root.halfDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
}
|
||||
NumberAnimation {
|
||||
to: 1
|
||||
duration: root.halfDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue