Add splash screen

This commit is contained in:
Thomas Nordquist
2019-01-13 21:55:31 +01:00
parent 225f536cd1
commit 906eadf08b
3 changed files with 81 additions and 0 deletions

View File

@@ -29,6 +29,12 @@ const theme = createMuiTheme({
typography: { useNextVariants: true },
})
const splash = document.getElementById('splash')
if (splash) {
splash.style.animation = 'unsplash 1s ease-out 0s 1 normal forwards'
setTimeout(() => splash.remove(), 1100)
}
ReactDOM.render(
<MuiThemeProvider theme={theme}>
<Provider store={store}>