Showing
2 changed files
with
10 additions
and
0 deletions
| ... | @@ -81,6 +81,12 @@ let setupPageShow = window.setupPageShow = function (pageId) { | ... | @@ -81,6 +81,12 @@ let setupPageShow = window.setupPageShow = function (pageId) { |
| 81 | let $idElem = $(idElem); | 81 | let $idElem = $(idElem); |
| 82 | let color = $('#custom-styles').attr('data-color-light'); | 82 | let color = $('#custom-styles').attr('data-color-light'); |
| 83 | $idElem.css('background-color', color).attr('data-highlighted', 'true').smoothScrollTo(); | 83 | $idElem.css('background-color', color).attr('data-highlighted', 'true').smoothScrollTo(); |
| 84 | + setTimeout(() => { | ||
| 85 | + $idElem.addClass('anim').addClass('selectFade').css('background-color', ''); | ||
| 86 | + setTimeout(() => { | ||
| 87 | + $idElem.removeClass('selectFade'); | ||
| 88 | + }, 3000); | ||
| 89 | + }, 100); | ||
| 84 | } else { | 90 | } else { |
| 85 | $('.page-content').find(':contains("' + text + '")').smoothScrollTo(); | 91 | $('.page-content').find(':contains("' + text + '")').smoothScrollTo(); |
| 86 | } | 92 | } | ... | ... |
| ... | @@ -126,4 +126,8 @@ | ... | @@ -126,4 +126,8 @@ |
| 126 | animation-duration: 180ms; | 126 | animation-duration: 180ms; |
| 127 | animation-delay: 0s; | 127 | animation-delay: 0s; |
| 128 | animation-timing-function: cubic-bezier(.62, .28, .23, .99); | 128 | animation-timing-function: cubic-bezier(.62, .28, .23, .99); |
| 129 | +} | ||
| 130 | + | ||
| 131 | +.anim.selectFade { | ||
| 132 | + transition: background-color ease-in-out 3000ms; | ||
| 129 | } | 133 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment