ui/bindings/csstransitiondisablermixin
module
Classes
-
module:ui/bindings/csstransitiondisablermixin~ViewWithCssTransitionDisabler
Functions
-
CssTransitionDisablerMixin( view ) → Mixed<Base, ViewWithCssTransitionDisabler>module:ui/bindings/csstransitiondisablermixin~CssTransitionDisablerMixinA mixin that brings the possibility to temporarily disable CSS transitions using
Viewmethods. It is helpful when, for instance, the transitions should not happen when the view is first displayed but they should work normal in other cases.The methods to control the CSS transitions are:
disableCssTransitions()– Adds the.ck-transitions-disabledclass to the view element.enableCssTransitions()– Removes the.ck-transitions-disabledclass from the view element.
The usage comes down to:
const MyViewWithCssTransitionDisabler = CssTransitionDisablerMixin( MyView ); const view = new MyViewWithCssTransitionDisabler(); // ... view.disableCssTransitions(); view.show(); view.enableCssTransitions();Copy codeType parameters
Base : extends Constructor<View<HTMLElement>>
Parameters
view : BaseView instance that should get this functionality.
Returns