Download Free Install Free
  • Angular
  • Animation

Animation

DESCRIPTION

Encapsulates a reusable animation. Instantiated and returned by the useAnimation() function.


def convert_to_byte_array(img):
"""
Converts an image file to a byte array for use with the
Rekognition API
"""
img_byte_arr = io.BytesIO()
img.save(img_byte_arr, format='PNG')
img_byte_arr = img_byte_arr.getvalue()
return img_byte_arr

PROPERTIES

animation: AnimationReferenceMetadata

An animation reference object.

options: AnimationOptions | null

An options object containing a delay and developer-defined parameters that provide styling defaults and can be overridden on invocation. Default delay is 0.

Want to code faster?

Kite is a plugin for your favorite text editor that provides useful completions sorted by relevance. Available in Python and Javascript — start coding faster today!

Download Kite Now – It's Free!

Code Faster in JavaScript with Multi-Line Code Completions

Learn More