I am working on new website and I got question. Should I change style using class or javascript code, for example:
the class way:
$('.class').hover(function()
{
$(this).addClass('nameofclass');
},function()
{
$(this).removeClass('nameofclass');
}
the javascript way:
$('.class').hover(function()
{
$(this).css('property','value');
},function()
{
$(this).css('property','value');
}
same question about animate, but in order to use class in animate, I need to use plugin. should I use plugin to allow class animation?