Gtk.StyleContext.prototype.state_is_running

function state_is_running(state:Gtk.StateType):Boolean {
    // Gjs wrapper for gtk_style_context_state_is_running()
}

Returns true if there is a transition animation running for the current region (see Gtk.StyleContext.prototype.push_animatable_region).

If progress is not null, the animation progress will be returned there, 0.0 means the state is closest to being unset, while 1.0 means it's closest to being set. This means transition animation will run from 0 to 1 when state is being set and from 1 to 0 when it's being unset.

Since 3.0

state

a widget state

Returns

true if there is a running transition animation for state.