Implemented first version of pictures tab
This commit is contained in:
4
main.js
4
main.js
@ -69,9 +69,9 @@ function switchTab(tabID, playAnimation=true) {
|
||||
|
||||
// Show selected tab
|
||||
if (playAnimation) {
|
||||
setTimeout(() => { tab.style.display = 'unset'; }, tabTransitionTime);
|
||||
setTimeout(() => { tab.style.display = null; }, tabTransitionTime);
|
||||
} else {
|
||||
tab.style.display = 'unset';
|
||||
tab.style.display = null;
|
||||
}
|
||||
// Required for animation to play
|
||||
let intervalID = setInterval(() => {
|
||||
|
||||
Reference in New Issue
Block a user