我试图做一个简单的淡入和淡出例如AngularJS.I需要显示出与幻灯片一个div向上或向下滑动或者淡入淡出我们在jQuery的事情。我有头(左顶部的按钮圆圈)search
按钮**上点击我展示搜索div
它工作在我plunker。我的问题是做动画... http://plnkr.co/edit/Z5Y51werBnzM6Yl7tcTB?p=preview 其次我需要添加z-index
,因为它产生新的层。当我点击搜索按钮**“我的名字”下来时,搜索栏是开放的。为什么?如何使用淡入和淡出了按钮单击角JS?
<ion-view>
<ion-header-bar align-title="" class="bar-positive">
<div class="buttons">
<i style="font-size:25px!important" class="icon-right ion-android-radio-button-off" ng-click="showsearch()"></i>
</div>
<h1 class="title">Title!</h1>
<a class="button icon-right ion-chevron-right button-calm"></a>
</ion-header-bar>
<div class="list list-inset searchclass" ng-show="isdiplay">
<label class="item item-input">
<img src="https://dl.dropboxusercontent.com/s/n2s5u9eifp3y2rz/search_icon.png?dl=0">
<input type="text" placeholder="Search">
</label>
</div>
<ion-contend>
<div style="margin-top:50px">
my name
</div>
</ion-contend>
</ion-view>
感谢回答淡入,淡出CSS3动画可以我们使用幻灯片向上滑动? –
是的。我已经更新了plunkr。我建议你阅读了关于CSS3动画 – rmuller
这个回答你的问题一点? – rmuller