0
我試圖使用jquery waypoint在每個li上做淡出,因爲我向下滾動頁面。我無法得到它每個李的工作。jquery waypoint動畫每個李fadeup
下面的代碼:
$('ul.animated li').each(function(){
$(this).waypoint(function(){
$(this).addClass('fadeInUp');
},{
offset:'100%'
});
});
<ul class="no-margin animated">
<li><a href="/our-services/business-and-commercial-law.html">Business & Commercial Law <i class="fa fa-check"></i></a></li>
<li><a href="/our-services/business-and-commercial-law/banking-and-finance.html">Banking & Finance <i class="fa fa-check"></i></a></li>
<li><a href="/our-services/business-and-commercial-law/commercial-contracts-and-agreements.html">Commercial Contracts & Agreements <i class="fa fa-check"></i></a></li>
<li><a href="/our-services/debt-recovery-and-insolvency.html">Debt Recovery & Insolvency <i class="fa fa-check"></i></a></li>
<li><a href="/our-services/debt-recovery-and-insolvency/debt-recovery.html">Debt Recovery <i class="fa fa-check"></i></a></li>
<li><a href="/our-services/debt-recovery-and-insolvency/insolvency.html">Insolvency <i class="fa fa-check"></i></a></li>
<li><a href="/our-services/property-law.html">Property Law <i class="fa fa-check"></i></a></li>
<li><a href="/our-services/property-law/real-estate.html">Real Estate <i class="fa fa-check"></i></a></li>
<li><a href="/our-services/property-law/leases.html">Leases <i class="fa fa-check"></i></a></li>
<li><a href="/our-services/litigation-and-dispute-resolution.html">Litigation & Dispute Resolution <i class="fa fa-check"></i></a></li>
<li><a href="/our-services/wills-and-estates.html">Wills & Estates <i class="fa fa-check"></i></a></li>
<li><a href="/our-services/wills-and-estates/estate-planning-and-wills.html">Estate Planning & Wills <i class="fa fa-check"></i></a></li>
<li><a href="/our-services/wills-and-estates/probate-and-estate-administration.html">Probate & Estate Administration <i class="fa fa-check"></i></a></li>
<li><a href="/our-services/wills-and-estates/estate-litigation.html">Estate Litigation <i class="fa fa-check"></i></a></li>
</ul>
我不知道如何得到它的工作,如果有人可以幫助,那將是非常美妙的。