class Inkcite::Animation::Composite
A collection of animations assigned to a single element.
Public Class Methods
new()
click to toggle source
# File lib/inkcite/facade/animation.rb, line 7 def initialize @animations = [] end
Public Instance Methods
<<(animation)
click to toggle source
# File lib/inkcite/facade/animation.rb, line 11 def << animation @animations << animation end
to_keyframe_css()
click to toggle source
# File lib/inkcite/facade/animation.rb, line 15 def to_keyframe_css @animations.collect(&:to_keyframe_css).join("\n") end
to_s()
click to toggle source
# File lib/inkcite/facade/animation.rb, line 19 def to_s # Render each of the animations in the collection and join them # in a single, comma-delimited string. @animations.collect(&:to_s).join(', ') end