                 break
 
             case (.animating, .ready):
-                invalidTransition(from: newValue, to: state)
+                invalidTransition(from: state, to: newValue)
 
             case (.animating, .animating):
                 break

        }

        didSet {
            switch state {
            case .finished:
                queue?.animationDidFinish(task: self)
            case .ready, .animating:
                break
            }
        }

                cancelAnimation()

            case (.finished, .ready):
                invalidTransition(from: state, to: newValue)

            case (.finished, .animating):
                invalidTransition(from: state, to: newValue)

            case (.finished, .finished):
                break
