Slide 116
Slide 116 text
Attribute manipulation and animation are also abstracted using an API similar to jQuery.
Remember, with Dojo this actually maps arguments back to the relevant Dojo methods needed
to achieve the task.
Aura: Core.dom > Attribs, Anim
// Get and set attributes
console.log(aura.core.dom.query('#seach_input').attr('title','foobar'));
console.log(aura.core.dom.query('#search_input').attr('title'));
// Passing in DOM nodes
var q = aura.core.dom.query('#shopping-cart');
console.log(aura.core.dom.attr(q, 'id'));
// Animation support
aura.core.dom.animate('#product-panel li', { width: 400, height:20}, 5000);
aura.core.dom.animate('button', {width: 200, duration: 100});
aura.core.dom.animate('p', {width:20, height:40, padding:10,duration:200});