yoob/element-factory.js Demo
Look at the browser's console to see the effect of some controls.