mirror of
https://github.com/kepler155c/opus
synced 2024-11-14 04:34:49 +00:00
minor tweaks
This commit is contained in:
parent
d88ef00652
commit
cd58ecd861
@ -3,8 +3,8 @@ local Tween = require('opus.ui.tween')
|
||||
local Transition = { }
|
||||
|
||||
function Transition.slideLeft(args)
|
||||
local ticks = args.ticks or 10
|
||||
local easing = args.easing or 'outQuint'
|
||||
local ticks = args.ticks or 8
|
||||
local easing = args.easing or 'inCirc'
|
||||
local pos = { x = args.ex }
|
||||
local tween = Tween.new(ticks, pos, { x = args.x }, easing)
|
||||
|
||||
@ -19,8 +19,8 @@ function Transition.slideLeft(args)
|
||||
end
|
||||
|
||||
function Transition.slideRight(args)
|
||||
local ticks = args.ticks or 10
|
||||
local easing = args.easing or 'outQuint'
|
||||
local ticks = args.ticks or 8
|
||||
local easing = args.easing or 'inCirc'
|
||||
local pos = { x = -args.canvas.width }
|
||||
local tween = Tween.new(ticks, pos, { x = 1 }, easing)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user