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

Does SequentialAnimation have a delay?



  • Hi I could not find any mention of a delay for SequentialAnimation. But to my eyes it seems that there may be about a few hundred milliseconds of delay from when I call start() on the animation, to when it actually starts. Anyone else has seen this effect before? For example I have this:

    SequentialAnimation {
    	id: flashAnimation
    	
    	alwaysRunToEnd: true
    	
    	PropertyAnimation {
    		target: flash
    		property: "color"
    		from: "transparent"
    		to: "white"
    		easing.type: Easing.OutCubic
    		duration: 1
    	}
    	PropertyAnimation {
    		target: flash
    		property: "color"
    		from: "white"
    		to: "transparent"
    		easing.type: Easing.InQuad
    		duration: 500
    	}
    
    	onStarted: console.log("started")
    }
    

    I can see that started is printed right away when I trigger flashAnimation.start(). But the actual flash happens with maybe 300-500 milliseconds of delay and doesn't happen immediately making the UI less responsive.


Log in to reply