new AnimatedAction()

Examples

			// Used through a builder function Animated.edit(), and not by creating a new instance
			import {Cloudinary} from "@cloudinary/url-gen";
			import {edit} from "@cloudinary/url-gen/actions/animated";
			
			const yourCldInstance = new Cloudinary({cloud:{cloudName:'demo'}});
			const image = yourCldInstance.image('woman');
			image.animated(edit().delay(200).loop(3)));

Methods


delay( delayValue ) → {this}

Description

Controls the time delay between the frames of an animated image, in milliseconds.

Parameters
Name Type Description
delayValue number

The delay in milliseconds

Returns
Details

loop( additionalLoops ) → {this}

Description

Delivers an animated GIF that contains additional loops of the GIF.

Parameters
Name Type Description
additionalLoops number

The additional number of times to play the animated GIF.

Returns
Details