class SlideHero::ListPoint

Constants

SUPPORTED_ANIMATIONS

Attributes

animation[R]
text[R]

Public Class Methods

new(text, options={}) click to toggle source
# File lib/slide_hero/list_point.rb, line 9
def initialize(text, options={})
  @text = text
  @animation = options[:animation]
end

Public Instance Methods

animation_class() click to toggle source
# File lib/slide_hero/list_point.rb, line 14
def animation_class
  if animation
    animation_markup = ' class="fragment '
    if SUPPORTED_ANIMATIONS.include? animation
      animation_markup << animation
    end
    animation_markup + "\""
  end
end