Example #1
0
    init() {
	this.con = document.createElement('section')
	setHtml(tipsTpl.render(this.opts))(this.con)
	this.el = $p(this.con)('.tips')
	addClass('js-anim--in')(this.el)
	append(this.con)(this.opts.container)

	return this
    }
Example #2
0
    remove() {
	remove(this.con)(this.opts.container)
    }
Example #3
0
	next(() => {
	    if(this.timer) cancelAnimationFrame(this.timer)
	    addClass('js-anim--leave')(this.el)
	})
Example #4
0
	next(() => addClass('js-anim--enter')(this.el))