javascript - QtQuick2 - QML - create infinite moving line animation -
does know how implement linear animation, example in progress bars, few of lines moving infinite in bar left right or other way? i'm going use qtquick2 primitives , without additional c++ components, glad see answers can fit requirements. also, know how set infinite loop animation, actual question how moves row of rectangles/lines letf right in infinity loop, can't imagine approach that.
something that?
rectangle { width: 400 height: 30 anchors.centerin: parent border.color: "grey" border.width: 1 clip: true rectangle { id: runner property double percent: 0.2 width: parent.width * percent height: parent.height color: "orange" numberanimation on x { from: runner.width * (-1); to: 400; duration: 2000; loops: animation.infinite } } }
Comments
Post a Comment