examples/scrolling.rb in whirled_peas-0.7.1 vs examples/scrolling.rb in whirled_peas-0.8.0
- old
+ new
@@ -37,17 +37,18 @@
end
end
end
end
-class Driver
+class Application
def start(producer)
- 53.times do |i|
- producer.send_frame('intro', duration: 0.3, args: { top: -i })
+ producer.frameset(5, easing: :bezier) do |fs|
+ 53.times { |i| fs.add_frame('intro', { top: -i }) }
end
+ producer.add_frame('hold', duration: 1, args: { top: -52})
end
end
WhirledPeas.configure do |config|
config.template_factory = TemplateFactory.new
- config.driver = Driver.new
+ config.application = Application.new
end