NumberAnimation

APIRendererAnimationPropertyAnimationNumberAnimation

Rectangle {
    width: 100; height: 100
    color: 'red'
    NumberAnimation {
        running: true
        property: 'x'
        from: 0
        to: 300
        loop: true
        duration: 1700
    }
}

Source

NumberAnimation.New(options)

Parameters:
  • options — Objectoptional
Returns:
NumberAnimation

Source

NumberAnimation::constructor()

Extends:
PropertyAnimation
Returns:
NumberAnimation

Source

NumberAnimation::from

Type:
Float

NumberAnimation::to

Type:
Float