일단 모든 거품을 초기 크기로 한 번씩 확대하고 싶습니다.Bubble with Jquery Effect
내 JS 바이올린은 다음과 같습니다 http://jsfiddle.net/ASPZm/
내가 자동 호버 효과를 한 번에 모든 거품이 효과로드를 보여주고 싶어요.
내 노력 코드를 수동으로 호출하여 mouseover
이벤트를 트리거 할 수 있습니다
$(document).ready(function() {
var i = 20;
$('.box').animate({
width: '30px',
opacity: '1',
height: '30px',
marginLeft: '-15px',
marginTop: '-15px'
}, 2000);
$('.box').each(function (i) {
setTimeout(function() {
$(this).stop(true, false).animate({
width: '200px',
height: '200px',
marginLeft: '-105px',
marginTop: '-105px',
fontSize: '40px',
opacity: '1',
}, 200).addClass('sachin').find("strong").css("display", "block");
$(this).stop(true, false).animate({
width: '30px',
height: '30px',
marginLeft: '-15px',
marginTop: '-15px',
fontSize: '20px',
}, 300).removeClass('sachin').find("strong").css("display", "none");
}, 400 * i);
});
$('.box').hover(function() {
$(this).stop(true, false).animate({
width: '200px',
height: '200px',
marginLeft: '-105px',
marginTop: '-105px',
fontSize: '40px',
opacity: '1',
}, 300).addClass('sachin').find("strong").css("display", "block");
}, function() {
$(this).stop(true, false).animate({
width: '30px',
height: '30px',
marginLeft: '-15px',
marginTop: '-15px',
fontSize: '20px',
}, 300).removeClass('sachin').find("strong").css("display", "none");
});
});