Class: Cat::Style::Animation

Inherits:
Object
  • Object
show all
Defined in:
lib/cat/style/animation.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Animation



4
5
6
# File 'lib/cat/style/animation.rb', line 4

def initialize(name)
  @name = name
end

Instance Method Details

#to_sObject



8
9
10
11
12
13
14
15
16
# File 'lib/cat/style/animation.rb', line 8

def to_s
  %{
animation-name: #{@name};
animation-duration: 2.79s;
animation-direction: reverse;
animation-iteration-count: infinite;
animation-timing-function: linear;
  }
end