jquery - Trying to toggle animate div square (can't figure out error) -


so, i'm using this:

http://jsfiddle.net/tjugd/3427/

as basis animate squares in carousel (all have class="carouselbutton":

http://jsfiddle.net/ybrx3/1035/

javascript

$('.carouselbutton').toggle(function(){         $(this).animate({height:'300',width:'300'});     },function(){         $(this).animate({height:'80',width:'80'}); }); 

it's not working. i'm wondering if of other class labels interfering. appreciate anyone's input!

(side note: can't figure out how vertically align text within squares. when use vertical-align:middle, changes shape of square. i'm not sure if i'm going in trouble tagging second onto this, though.)


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -