Gtk.StyleContext.prototype.cancel_animations

function cancel_animations(region_id:gpointer):void {
    // Gjs wrapper for gtk_style_context_cancel_animations()
}

Stops all running animations for region_id and all animatable regions underneath.

A null region_id will stop all ongoing animations in context, when dealing with a Gtk.StyleContext obtained through Gtk.get_style_context, this is normally done for you in all circumstances you would expect all widget to be stopped, so this should be only used in complex widgets with different animatable regions.

Since 3.0

region_id

animatable region to stop, or null. See Gtk.push_animatable_region