0

I. .slide-one.animate-in ---> 添加追加

二、.slide-one ---> 删除附加

HTML:

<ul class="animation-canvas">
  <li class="slide-one">slide-one</li>
  </ul>
<div>

HTML 活动:

<ul class="animation-canvas">
      <li class="slide-one animate-in">slide-one</li>
      </ul>
    <div>

JS:

$('ul.animation-canvas li.animation-in').append('<div class="iebox">test</div>');

演示: http://jsfiddle.net/TP53Y/

4

1 回答 1

1

在这里做

function () {
    $('.slide-one').addClass("animiation-in").append('<div class="iebox">test</div>');
  }

编辑

这可能会帮助你。

$(".addactive").hover(function () {
    $('ul.animation-canvas').find('.slide-one').addClass("animation-in").append('<div class="iebox">test</div>');
}, function () {
    $that = $('ul.animation-canvas');
    $that.find('li.animation-in .iebox').remove();
    $that.find('.slide-one').removeClass("animation-in");
});
于 2013-11-14T16:27:22.223 回答