/mutateAndFade

An element and a function with the changes, fade between both.

Primary LanguageJavaScriptMIT LicenseMIT

mutateAndFade

mutateAndFade( element,  mutateFunction, options,  )

  element   The element that you want to change.

  mutateFunction   A function that receives an element and modifies it. This element may be the element you provided or a clone of it.

  options  { duration,  timingFunction }



Keep in mind:

The inline style of the provided element should be left blank to avoid conflict. The module uses this styles.

It's suggested to use a wrapper and then change the styles of the elements inside it. If you need to set the wrapper styles, make use of classes.