python-lottie  0.6.10+dev2509936
A framework to work with lottie files and telegram animated stickers (tgs) Class Reference

An animatable property that holds a float. More...

Inheritance diagram for
Collaboration diagram for

Public Member Functions

def __init__ (self, value=0)
def add_keyframe (self, time, value, ease=easing.Linear())
def get_value (self, time=0)
 Returns the value of the property at the given frame/time. More...
- Public Member Functions inherited from
def clear_animation (self, value)
 Sets a fixed value, removing animated keyframes. More...
def add_keyframe (self, time, value, interp=easing.Linear(), *args, **kwargs)
def to_dict (self)
def __repr__ (self)
def __str__ (self)
def merge_keyframes (cls, items, conversion)
def load (cls, lottiedict)
- Public Member Functions inherited from lottie.objects.base.LottieObject
def to_dict (self)
 Serializes into a JSON object fit for the Lottie format. More...
def load (cls, lottiedict)
 Loads from a JSON object. More...
def find (self, search, propname="name")
 Recursively searches for child objects with a matching property. More...
def find_all (self, type, predicate=None, include_self=True)
 Find all child objects that match a predicate. More...
def clone (self)
 Returns a copy of the object. More...
def clone_into (self, other)
def __str__ (self)
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)

Static Public Attributes

 keyframe_type = OffsetKeyframe
- Static Public Attributes inherited from
 keyframe_type = Keyframe

Additional Inherited Members

- Public Attributes inherited from
 Non-animated value. More...
 Property index. More...
 Whether it's animated. More...
 Keyframe list. More...

Detailed Description

An animatable property that holds a float.

Lottie JSON
Lottie name Type Description Attribute
k float Non-animated value.   value
ix int Property index.   property_index
a 0-1 int Whether it's animated.   animated
k list of OffsetKeyframe Keyframe list.   keyframes

Definition at line 608 of file

Constructor & Destructor Documentation

◆ __init__()

def (   self,
  value = 0 

Reimplemented from

Definition at line 620 of file

Member Function Documentation

◆ add_keyframe()

def (   self,
  ease = easing.Linear() 

Definition at line 623 of file

◆ get_value()

def (   self,
  time = 0 

Returns the value of the property at the given frame/time.

Reimplemented from

Definition at line 626 of file

Member Data Documentation

◆ keyframe_type = OffsetKeyframe

Definition at line 612 of file

The documentation for this class was generated from the following file: