DragonByte Tech
Well-known member
- Affected version
- 2.3.0b3
When using
View attachment Screen Recording 2024-04-09 at 21.54.45.mov
View attachment Screen Recording 2024-04-09 at 21.55.15.mov
Relevant JS code:
XF.Animate.slideDown()
and XF.Animate.slideUp()
as replacements for jQuery.slideDown()
and jQuery.slideUp()
, you experience stilted animations.XF.Animate.slideDown()
:View attachment Screen Recording 2024-04-09 at 21.54.45.mov
XF.Animate.slideUp()
:View attachment Screen Recording 2024-04-09 at 21.55.15.mov
Relevant JS code:
JavaScript:
for (let key in data.items)
{
let item = data.items[key];
XF.setupHtmlInsert(item, ($html, container, onComplete) =>
{
let self = this;
$html.style.display = 'none';
this.$container.insertBefore($html, this.$container.firstChild);
XF.Animate.slideDown($html, {
speed: (this.options.refreshDelay * 1000) / 2,
complete ()
{
self.$container
.querySelectorAll('li:nth-child(n+' + (self.options.maxResults - 1) + ')')
.forEach($el => {
XF.Animate.slideUp($el, {
speed: (self.options.refreshDelay * 1000) / 2,
complete ()
{
$el.remove();
}
})
})
;
},
})
XF.layoutChange();
});
}