classNameFilter([expression]);
Sets and/or returns the CSS class regular expression that is checked when performing an animation. Upon bootstrap the classNameFilter value is not set at all and will therefore enable $animate to attempt to perform an animation on any element that is triggered. When setting the classNameFilter
value, animations will only be performed on elements that successfully match the filter expression. This in turn can boost performance for low-powered devices as well as applications containing a lot of structural operations.
Parameters
Param | Type | Details |
---|---|---|
expression (optional) | RegExp | The className expression which will be checked against all animations |
Returns
RegExp |
The current CSS className expression value. If null then there is no expression value |
Please login to continue.