Tungsten v0.1.0 Tungsten.CDP.Animation View Source

Animation

This domain has no documentation

Link to this section Summary

Link to this section Types

Link to this type

cdp_animation_effect_type() View Source
cdp_animation_effect_type() :: %{
  :delay => integer() | float(),
  :end_delay => integer() | float(),
  :iteration_start => integer() | float(),
  :iterations => integer() | float(),
  :duration => integer() | float(),
  :direction => String.t(),
  :fill => String.t(),
  optional(:backend_node_id) => Tungsten.CDP.DOM.cdp_backend_node_id_type(),
  optional(:keyframes_rule) => cdp_keyframes_rule_type(),
  :easing => String.t()
}

Animation.AnimationEffect

AnimationEffect instance

Link to this type

cdp_animation_type() View Source
cdp_animation_type() :: %{
  :id => String.t(),
  :name => String.t(),
  :paused_state => boolean(),
  :play_state => String.t(),
  :playback_rate => integer() | float(),
  :start_time => integer() | float(),
  :current_time => integer() | float(),
  :type => :web_animation | :css_animation | :css_transition,
  optional(:source) => cdp_animation_effect_type(),
  optional(:css_id) => String.t()
}

Animation.Animation

Animation instance.

Link to this type

cdp_keyframe_style_type() View Source
cdp_keyframe_style_type() :: %{offset: String.t(), easing: String.t()}

Animation.KeyframeStyle

Keyframe Style

Link to this type

cdp_keyframes_rule_type() View Source
cdp_keyframes_rule_type() :: %{
  optional(:name) => String.t(),
  :keyframes => [cdp_keyframe_style_type()]
}

Animation.KeyframesRule

Keyframes Rule

Link to this section Functions

Link to this function

disable(session, parameters \\ %{}, options \\ []) View Source
disable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
  {:ok, map()} | {:error, term()}

Animation.disable

Disables animation domain notifications.

Link to this function

enable(session, parameters \\ %{}, options \\ []) View Source
enable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
  {:ok, map()} | {:error, term()}

Animation.enable

Enables animation domain notifications.

Link to this function

get_current_time(session, parameters, options \\ []) View Source
get_current_time(
  GenServer.server(),
  %{id: String.t()},
  Tungsten.Connection.exec_options()
) :: {:ok, %{current_time: integer() | float()}} | {:error, term()}

Animation.getCurrentTime

Returns the current time of the an animation.

Link to this function

get_playback_rate(session, parameters \\ %{}, options \\ []) View Source
get_playback_rate(
  GenServer.server(),
  map(),
  Tungsten.Connection.exec_options()
) :: {:ok, %{playback_rate: integer() | float()}} | {:error, term()}

Animation.getPlaybackRate

Gets the playback rate of the document timeline.

Link to this function

release_animations(session, parameters, options \\ []) View Source
release_animations(
  GenServer.server(),
  %{animations: [String.t()]},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

Animation.releaseAnimations

Releases a set of animations to no longer be manipulated.

Link to this function

resolve_animation(session, parameters, options \\ []) View Source
resolve_animation(
  GenServer.server(),
  %{animation_id: String.t()},
  Tungsten.Connection.exec_options()
) ::
  {:ok, %{remote_object: Tungsten.CDP.Runtime.cdp_remote_object_type()}}
  | {:error, term()}

Animation.resolveAnimation

Gets the remote object of the Animation.

Link to this function

seek_animations(session, parameters, options \\ []) View Source
seek_animations(
  GenServer.server(),
  %{animations: [String.t()], current_time: integer() | float()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

Animation.seekAnimations

Seek a set of animations to a particular time within each animation.

Link to this function

set_paused(session, parameters, options \\ []) View Source
set_paused(
  GenServer.server(),
  %{animations: [String.t()], paused: boolean()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

Animation.setPaused

Sets the paused state of a set of animations.

Link to this function

set_playback_rate(session, parameters, options \\ []) View Source
set_playback_rate(
  GenServer.server(),
  %{playback_rate: integer() | float()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

Animation.setPlaybackRate

Sets the playback rate of the document timeline.

Link to this function

set_timing(session, parameters, options \\ []) View Source
set_timing(
  GenServer.server(),
  %{
    animation_id: String.t(),
    duration: integer() | float(),
    delay: integer() | float()
  },
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

Animation.setTiming

Sets the timing of an animation node.