私はマウスが各li
の上にマウスを置いたときに表示されるボタンのグループを持つ項目のリストを持っていますが、今のところli
の上を移動すると、すべてitem-btn-grp
が表示されます。 li
が表示されるように、item-btn-grp
だけを欲しいです。事前にお礼をお寄せください。私はアニメーションのためにngAnimateを使用しています。ng-mouseover/mouseleave各リスト項目のアニメーション
.item-btn-grp {
display:inline-block;
float: right;
height: 40px;
border-left: 1px solid #a1a0a0;
-webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1s;
-moz-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1s;
-o-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1s;
transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1s;
right: 0;
}
.item-btn-grp.ng-hide {
right: -50px;
opacity:0;
padding:0 10px;
}
<div id="tasks-list">
<li class="task-item" ng-mouseover="myValue = true" ng-mouseleave="myValue = false">
Do this And then that
<div class='item-btn-grp' ng-show="myValue" >
<button class="item-btn-ok"><span class="glyphicon glyphicon-ok"></span></button>
<button class="item-btn-remove"><span class="glyphicon glyphicon-remove"></span></button>
</div>
</li>
<li class="task-item" ng-mouseover="myValue = true" ng-mouseleave="myValue = false">
Do this And then that
<div class='item-btn-grp' ng-show="myValue" >
<button class="item-btn-ok"><span class="glyphicon glyphicon-ok"></span></button>
<button class="item-btn-remove"><span class="glyphicon glyphicon-remove"></span></button>
</div>
</li>
</div>
を使用していると仮定しますか? – Sharmila