mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 17:44:52 -04:00
Hide module after fade out.
This commit is contained in:
parent
38e42cf71e
commit
147791dbcd
1 changed files with 2 additions and 0 deletions
|
@ -167,6 +167,7 @@ var MM = (function() {
|
|||
moduleWrapper.style.opacity = 0;
|
||||
|
||||
setTimeout(function() {
|
||||
moduleWrapper.style.display = 'none';
|
||||
if (typeof callback === 'function') { callback(); }
|
||||
}, speed);
|
||||
}
|
||||
|
@ -184,6 +185,7 @@ var MM = (function() {
|
|||
if (moduleWrapper !== null) {
|
||||
moduleWrapper.style.transition = "opacity " + speed / 1000 + "s";
|
||||
moduleWrapper.style.opacity = 1;
|
||||
moduleWrapper.style.display = 'block';
|
||||
|
||||
setTimeout(function() {
|
||||
if (typeof callback === 'function') { callback(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue