tommyhedgerow50 downloadsPlay a short pixel-art animation over the vault as it opens, then get out of the way.
Plays a short pixel-art animation over the vault as Obsidian opens, once, then takes itself away. Any key, a click or Escape dismisses it early, and it never traps focus or blocks the workspace behind it. The animation is decoration, and it leaves on its own when it ends.
When the workspace has finished laying itself out, the plugin draws a curtain over the window and plays one clip on it. The clip runs once and holds its last frame; there is no loop.
prefers-reduced-motion: reduce is set, the still poster is shown for 1.5 seconds and then faded out.The plugin reads four files from a fixed folder in the vault, and the folder is not configurable:
<Vault>/Tools/splash/
mimir_startup_dark.mp4
mimir_startup_dark_poster.png
mimir_startup_light.webm
mimir_startup_light_poster.png
They are not downloaded and not bundled into main.js: a copy has to be in each vault that should play it. The four files are in this repository under media/, so copy that folder to <Vault>/Tools/splash/. If you use the Mimir vault they are already there and there is nothing to do.
If a file is missing, nothing is drawn and one line is written to the developer console; the vault is not interrupted with a notice. The folder name is the DIR constant at the top of src/main.js for anyone who needs to move it.
Mimir Splash is part of the Mimir learning vault; the project is at https://github.com/tommyhedgerow/Mimir.
Mimir Splash is not in the community directory yet. Submission is pending, so the manual path is the one that works today.
Manual install:
main.js, manifest.json and styles.css from the latest release at https://github.com/tommyhedgerow/obsidian-mimir-splash/releases.<Vault>/.obsidian/plugins/mimir-splash/.media/ into <Vault>/Tools/splash/.Once the listing is live, the plugin can be installed from Settings → Community plugins → Browse, by searching for "Mimir Splash".
The animation plays when the vault opens, if that is switched on. Two commands are the whole interface:
Play the startup animation plays it now.Play the startup animation when the vault opens switches the on-open behaviour on and off, and says which way it went.There is no settings tab. The one setting, whether to play when the vault opens, is stored through Obsidian's data API in the plugin's own data.json, and it is toggled by the second command above. It is on by default.
data.json.MIT. See LICENSE.