let $idElem = $(idElem);
let color = $('#custom-styles').attr('data-color-light');
$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 {
$('.page-content').find(':contains("' + text + '")').smoothScrollTo();
}
animation-duration: 180ms;
animation-delay: 0s;
animation-timing-function: cubic-bezier(.62, .28, .23, .99);
+}
+
+.anim.selectFade {
+ transition: background-color ease-in-out 3000ms;
}
\ No newline at end of file