fix:arrow jump&styles
This commit is contained in:
parent
42b387c94a
commit
63497f1ad2
@ -9,8 +9,9 @@
|
||||
else title = __('archive_a');
|
||||
}
|
||||
%>
|
||||
<% if (pagination !== 2){ %>
|
||||
<h1 class="page-type-title"><%- title %></h1>
|
||||
|
||||
<% } %>
|
||||
<% if (pagination == 2){ %>
|
||||
<% page.posts.each(function(post){ %>
|
||||
<%- partial('article', {post: post, index: true}) %>
|
||||
|
@ -25,7 +25,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="cover-learn-more">
|
||||
<a href="#main" class="anchor"><i class="ri-arrow-down-line"></i></a>
|
||||
<a href="javascript:void(0)" class="anchor"><i class="ri-arrow-down-line"></i></a>
|
||||
</div>
|
||||
</section>
|
||||
<% } %>
|
@ -137,11 +137,11 @@
|
||||
margins: 5
|
||||
});
|
||||
|
||||
//
|
||||
// scroll down
|
||||
$(document).ready(function ($) {
|
||||
$('.anchor').click(function (event) {
|
||||
event.preventDefault();
|
||||
$('main').animate({ scrollTop: $(this.hash).offset().top }, 'smooth');
|
||||
$('.anchor').click(function (e) {
|
||||
e.preventDefault();
|
||||
$('main').animate({ scrollTop: $('.cover').height() }, 'smooth');
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user