Tungsten v0.1.0 Tungsten.CDP.Animation View Source
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()
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()
}
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()
}
AnimationEffect instance
Link to this type
cdp_animation_type()
View Source
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()
}
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 instance.
Link to this type
cdp_keyframe_style_type() View Source
Keyframe Style
Link to this type
cdp_keyframes_rule_type()
View Source
cdp_keyframes_rule_type()
View Source
cdp_keyframes_rule_type() :: %{
optional(:name) => String.t(),
:keyframes => [cdp_keyframe_style_type()]
}
cdp_keyframes_rule_type() :: %{
optional(:name) => String.t(),
:keyframes => [cdp_keyframe_style_type()]
}
Keyframes Rule
Link to this section Functions
Link to this function
disable(session, parameters \\ %{}, options \\ [])
View Source
disable(session, parameters \\ %{}, options \\ [])
View Source
disable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
{:ok, map()} | {:error, term()}
disable(GenServer.server(), map(), Tungsten.Connection.exec_options()) :: {:ok, map()} | {:error, term()}
Disables animation domain notifications.
Link to this function
enable(session, parameters \\ %{}, options \\ [])
View Source
enable(session, parameters \\ %{}, options \\ [])
View Source
enable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
{:ok, map()} | {:error, term()}
enable(GenServer.server(), map(), Tungsten.Connection.exec_options()) :: {:ok, map()} | {:error, term()}
Enables animation domain notifications.
Link to this function
get_current_time(session, parameters, options \\ [])
View Source
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()}
get_current_time( GenServer.server(), %{id: String.t()}, Tungsten.Connection.exec_options() ) :: {:ok, %{current_time: integer() | float()}} | {:error, term()}
Returns the current time of the an animation.
Link to this function
get_playback_rate(session, parameters \\ %{}, options \\ [])
View Source
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()}
get_playback_rate( GenServer.server(), map(), Tungsten.Connection.exec_options() ) :: {:ok, %{playback_rate: integer() | float()}} | {:error, term()}
Gets the playback rate of the document timeline.
Link to this function
release_animations(session, parameters, options \\ [])
View Source
release_animations(session, parameters, options \\ [])
View Source
release_animations(
GenServer.server(),
%{animations: [String.t()]},
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
release_animations( GenServer.server(), %{animations: [String.t()]}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
Releases a set of animations to no longer be manipulated.
Link to this function
resolve_animation(session, parameters, options \\ [])
View Source
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()}
resolve_animation( GenServer.server(), %{animation_id: String.t()}, Tungsten.Connection.exec_options() ) :: {:ok, %{remote_object: Tungsten.CDP.Runtime.cdp_remote_object_type()}} | {:error, term()}
Gets the remote object of the Animation.
Link to this function
seek_animations(session, parameters, options \\ [])
View Source
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()}
seek_animations( GenServer.server(), %{animations: [String.t()], current_time: integer() | float()}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
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(session, parameters, options \\ [])
View Source
set_paused(
GenServer.server(),
%{animations: [String.t()], paused: boolean()},
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
set_paused( GenServer.server(), %{animations: [String.t()], paused: boolean()}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
Sets the paused state of a set of animations.
Link to this function
set_playback_rate(session, parameters, options \\ [])
View Source
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()}
set_playback_rate( GenServer.server(), %{playback_rate: integer() | float()}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
Sets the playback rate of the document timeline.
Link to this function
set_timing(session, parameters, options \\ [])
View Source
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()}
set_timing( GenServer.server(), %{ animation_id: String.t(), duration: integer() | float(), delay: integer() | float() }, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
Sets the timing of an animation node.