I have a very simple question.
$(this).next()
.stop(true,true)
.fadeOut(910, 'easeOutSine')
.next()
.stop(true,true)
.fadeOut(270, 'easeOutSine')
.next()
.stop(true,true)
.fadeOut(50, 'easeOutSine');
$(this).prev()
.stop(true,true)
.fadeOut(910, 'easeOutSine')
.prev()
.stop(true,true)
.fadeOut(270, 'easeOutSine')
.prev()
.stop(true,true)
.fadeOut(50, 'easeOutSine');
This is what I have and it seems to me somehow silly to write so (even if ti works perfect)
I am looking for a shorter code that would say „take the following and the previous element of me and treat it in the same way. Something with filter :next and :prev at the same time.
But I didn’t succeed in making the code look simpler.
I am still learning.