demo/dom/index.js
function toggle(ev) {
		if (ev)
			ev.preventDefault()
		
		autoTime = 0
		autoPlay = true
		curTimeline = curTimeline === anim1 ? anim2 : anim1
		duration = curTimeline.duration()

		//clear style
		widget.element.style.cssText = ''

		editor.show(curTimeline === anim1 ? 0 : 1)
		editor.hide(curTimeline === anim1 ? 1 : 0)
	}
function toggle(ev) {
		if (ev)
			ev.preventDefault()
		
		autoTime = 0
		autoPlay = true
		curTimeline = curTimeline === anim1 ? anim2 : anim1
		duration = curTimeline.duration()

		//clear style
		widget.element.style.cssText = ''

		editor.show(curTimeline === anim1 ? 0 : 1)
		editor.hide(curTimeline === anim1 ? 1 : 0)
	}
function toggle ( ev ) { if ( ev ) ev . preventDefault ( ) autoTime = 0 autoPlay = true curTimeline = curTimeline === anim1 ? anim2 : anim1 duration = curTimeline . duration ( ) //clear style widget . element . style . cssText = '' editor . show ( curTimeline === anim1 ? 0 : 1 ) editor . hide ( curTimeline === anim1 ? 1 : 0 ) }
toggle new timeline
toggle new timeline