benix Posted August 18, 2016 Share Posted August 18, 2016 Добрый день. Есть функция сворачивания/разворачивания содержимого: new Effect.SlideUp('forumsajaxcontentWrapper', { afterFinish: function() { $( 'forumstitle' ).update( t.responseJSON['title'] ); $( 'forumsajaxcontentWrapper' ).update( t.responseJSON['data'] ); new Effect.SlideDown('forumsajaxcontentWrapper'); } }); Effect.SlideUp - сворачивание Effect.SlideDown - разворачивание Не подскажете, куда прописать время выполнения функции? Чтобы, к примеру, сворачивание и разворачивание выполнялось за 300 миллисекунд? Quote Link to comment Share on other sites More sharing options...
benix Posted August 18, 2016 Author Share Posted August 18, 2016 Вопрос решен. Quote Link to comment Share on other sites More sharing options...
Sipsb Posted August 18, 2016 Share Posted August 18, 2016 Расскажите решение, возможно поможете другим! Quote Link to comment Share on other sites More sharing options...
benix Posted August 18, 2016 Author Share Posted August 18, 2016 new Effect.SlideUp('forumsajaxcontentWrapper', { duration: 0.3, afterFinish: function() { $( 'forumstitle' ).update( t.responseJSON['title'] ); $( 'forumsajaxcontentWrapper' ).update( t.responseJSON['data'] ); new Effect.SlideDown('forumsajaxcontentWrapper', {duration: 0.3}); } }); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.