Warning, /webapps/qmlonline/qml/examples/animatedsprite.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.12 0002 0003 Rectangle { 0004 anchors.fill: parent 0005 0006 AnimatedSprite { 0007 id: animation 0008 source: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRuOYyu8ydKlI4UWwZb9WoOa7ThwgIMDz5rE1HmMe6OB21TViymmQ&s" 0009 anchors.centerIn: parent 0010 width: 60 0011 height: 60 0012 frameWidth: 46 0013 frameCount: 13 0014 frameDuration: 100 0015 reverse: false 0016 loops: 1 0017 onFinished: { 0018 reverse = !reverse 0019 running = true 0020 } 0021 } 0022 0023 Image { 0024 source: animation.source 0025 anchors.bottom: parent.bottom 0026 anchors.left: parent.left 0027 anchors.right: parent.right 0028 } 0029 }