Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

SequentialAnimation, how to reduce the gap.



  • Hi everybody. I have implemented the "SequentialAnimation on y {" to obtain a floating object from Y to Y+ 30. How can I reduce the gap (30 to zero) dinamically?

    @ SequentialAnimation on y {
    loops: Animation.Infinite;
    NumberAnimation {
    from: y- floatgap / 2;
    duration: floattime
    easing.type: Easing.InOutQuad;
    to: y+ floatgap / 2;
    }
    NumberAnimation {
    from: y+ floatgap / 2;
    duration: floattime
    easing.type: Easing.InOutQuad;
    to: y- floatgap / 2;
    }

    }@

Log in to reply