mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-25 14:42:44 +03:00
parent
46c01ecba2
commit
1a09d88891
@ -81,6 +81,12 @@ let setupPageShow = window.setupPageShow = function (pageId) {
|
|||||||
let $idElem = $(idElem);
|
let $idElem = $(idElem);
|
||||||
let color = $('#custom-styles').attr('data-color-light');
|
let color = $('#custom-styles').attr('data-color-light');
|
||||||
$idElem.css('background-color', color).attr('data-highlighted', 'true').smoothScrollTo();
|
$idElem.css('background-color', color).attr('data-highlighted', 'true').smoothScrollTo();
|
||||||
|
setTimeout(() => {
|
||||||
|
$idElem.addClass('anim').addClass('selectFade').css('background-color', '');
|
||||||
|
setTimeout(() => {
|
||||||
|
$idElem.removeClass('selectFade');
|
||||||
|
}, 3000);
|
||||||
|
}, 100);
|
||||||
} else {
|
} else {
|
||||||
$('.page-content').find(':contains("' + text + '")').smoothScrollTo();
|
$('.page-content').find(':contains("' + text + '")').smoothScrollTo();
|
||||||
}
|
}
|
||||||
|
@ -127,3 +127,7 @@
|
|||||||
animation-delay: 0s;
|
animation-delay: 0s;
|
||||||
animation-timing-function: cubic-bezier(.62, .28, .23, .99);
|
animation-timing-function: cubic-bezier(.62, .28, .23, .99);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.anim.selectFade {
|
||||||
|
transition: background-color ease-in-out 3000ms;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user