gpt4 book ai didi

javascript - 删除滑动切换效果

转载 作者:太空宇宙 更新时间:2023-11-04 11:28:16 24 4
gpt4 key购买 nike

我在删除一个简单的关闭 div id 按钮的过于复杂的 jquery 幻灯片效果时遇到了一些麻烦。

我只想轻弹关闭 - 没有动画。

我的 HTML:

<div class="d-all t-all m-all group following_prompt">
<button type='button' id='hideshow' value='hide/show' class="close"><span class="icon-cross black right"></span></button>
<section class="center group">
<h1>You're not following anyone yet</h1>
<p>Get following to fill your feed with just the stuff you wanna see</p>
</section>
<article class="d1-d3 t1-t4 m-all user_following">
{{ member:profile uid="{author}" }}
<a href="/profile/{{ username }}" class="user_avatar d1 m1">{{ gravatamatic:quicky
email = "{email}"
size = "64"
}}</a>
<section class="d2-d3 m2-m4 author_bio">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p>
<a class="global_btn_white" href="/">Follow {{ username }}</a>
</section>
{{ /member:profile }}
</article>
</div>

我的JS:

jQuery(document).ready(function(){
$('#hideshow').on('click', function(event) {
$('.following_prompt').toggle('show');
});
});

最佳答案

简单修复 - 谢谢 Satish

$('.following_prompt').hide()

关于javascript - 删除滑动切换效果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32204894/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com