var CTfxMan = { run : function(idx_tfx,idx_f,idx_t,b_reverse) { var tfx = { idx:{ "f":idx_f, "t":idx_t }, init:{}, kf:{}, b_reverse:b_reverse }; var rec = CSlideMan.getSlide(idx_tfx); for ( var key in rec ) { tfx[key] = rec[key]; } var tfx_func_run = tfx_handlers[rec["verb"]]; tfx_func_run.call(tfx); } }; var CSlideMan = { slides : [ { "img":"test-0.jpg", "bg-color":"yellow", "bg-size":"contain", "bg-pos":"center", "verb":"bounce", "coru":"u", "dir":"down", "ttime":"2", }, { "img":"test-1.jpg", "bg-color":"gold", "bg-size":"cover", "bg-pos":"left", "verb":"gate", "coru":"c", "dir":"hori", "ttime":"0.6", "easing":"ease" }, { "img":"test-2.jpg", "bg-color":"rgba(0,0,0,0.5)", "bg-size":"cover", "bg-pos":"center", "verb":"slice", "coru":"c", "dir":"down", "nos":10, "ttime":"1", "easing":"ease" }, { "img":"test-3.jpg", "bg-color":"rgba(255,200,200,0.5)", "bg-size":"cover", "bg-pos":"center", "verb":"scroll", "dir":"right", "ttime":"0.5", "easing":"ease" }, ], /* "verb":"zoom", "coru":"u", "ttime":".8", "easing":"ease-out" "verb":"kenburns", "dir":"br", "ttime":"4", "easing":"linear" "verb":"scroll", "dir":"right", "ttime":"0.5", "easing":"ease" "verb":"fade", "ttime":"4", "easing":"linear" "verb":"blind", "coru":"u", "dir":"up", "nos":13, "ttime":"1", "easing":"ease" "verb":"slice", "coru":"c", "dir":"down", "nos":10, "ttime":"1", "easing":"ease" "verb":"turn", "dir":"right", "ttime":".5", "easing":"ease" "verb":"uncover", "dir":"right", "ttime":"1", "easing":"linear" */ setup : function() { }, getSlide : function(idx) { return this.slides[idx]; }, getCount : function() { return this.slides.length; }, create : function(idx,base_class) { var cls = "slide-base" + ( base_class ? "-"+base_class:"" ); var rec = this.getSlide(idx); return $("