6
rated 0 times
[
12]
[
6]
/ answers: 1 / hits: 82124
/ 8 Years ago, tue, february 16, 2016, 12:00:00
I am trying to have a circle div with the class of bubble to pop when a button is clicked using jQuery. I want to get it to appear from nothing and grow to its full size, but I am having trouble getting it to work. heres my code:
HTML
Show bubble
...
CSS
.bubble {
transform: scale(0);
}
Javascript
$('button').click(function(){
$('.bubble').animate({transform: scale(1)}, 5000, 'linear');
});
More From » jquery