我正在尝试使用 jQuery 制作一个非常简单且简短的动画。
有一个 ul 关键字列表,由 parents 和 children 构成。动画应该显示第一级元素,然后是第二级和第三级。
有人告诉我也有 CSS3 解决方案,我不知道该走哪条路.. 有什么想法吗?
谢谢..
更新 :
目前我只有这样的东西:
<style>
.first {float:left; width:168px; height:68px; background:blue; position:absolute; }
.second {float:left; width:120px; height:32px; background:blue; position:absolute; }
.third {float:left; width:90px; height:26px; background:blue; position:absolute; }
.fourth {float:left; width:auto; height:20px; background:blue; position:absolute; }
.alfa {float: left; width:168px; height:68px; background:blue;}
.beta {float:left; width:120px; height:32px; background:blue; }
.omega {float:left; width:90px; height:26px; background:blue; }
.orion {float:left; width:auto; height:20px; background:blue; }
.positiona { margin-left:330px; margin-top:20px; }
.positionb { margin-left:180px; margin-top:50px; }
.positionc { margin-left:280px; margin-top:110px; }
.positiond { margin-left:140px; margin-top:100px; }
.positione { margin-left:180px; margin-top:160px; }
.positionf { margin-left:20px; margin-top:105px; }
.positiong { margin-left:60px; margin-top:140px; }
.positionz { margin-left:0px; margin-top:20px; }
.positionx { margin-left:20px; margin-top:50px; }
.positionv { margin-left:-190px; margin-top:110px; }
.positionn { margin-left:-40px; margin-top:100px; }
.positionm { margin-left:-110px; margin-top:160px; }
.positionl { margin-left:40px; margin-top:105px; }
.positionk { margin-left:20px; margin-top:20px; }
</style>
<div style="width:505px; float:left;">
<div class="first positiona">agenius</div>
<div class="second positionb">echilibru</div>
<div class="second positionc">planificare</div>
<div class="third positiond">evolutie</div>
<div class="third positione">actiune</div>
<div class="fourth positionf">monitorizare</div>
<div class="fourth positiong">concepte</div>
</div>
<!-- +++++++++++++++++++++ -->
<div style="width:505px; float:right;">
<div class="alfa positionz">agenius</div>
<div class="beta positionx">echilibru</div>
<div class="beta positionv">planificare</div>
<div class="omega positionn">evolutie</div>
<div class="omega positionm">actiune</div>
<div class="orion positionl">monitorizare</div>
<div class="orion positionk">concepte</div>
</div>
它看起来像这样: