Editor X allows you to create effects that change the way elements are displayed on your site.

This mixin provides functionality that allows you to control the display of effects defined for an element.

This mixin can only be used in Editor X.

About Mixins

Mixins provide functionality that other elements can inherit and use.

Mixins are not elements. You cannot add mixins to a page in the Editor like other $w elements, and mixins are not meant to be used directly in your code.

For example, you would not write code like this, because it is out of context:

$w("#EffectsMixin").effects.applyEffects(['My Effect']);
javascript | Copy Code

Instead, you can code the following if myButton is an element that can be clicked and
"mixes in" EffectsMixin.

$w("#myButton").effects.applyEffects(['My Effect']);
javascript | Copy Code

Was this helpful?