diff --git a/src/scripts/app.js b/src/scripts/app.js index cca38b2..47ff011 100644 --- a/src/scripts/app.js +++ b/src/scripts/app.js @@ -10,7 +10,7 @@ import preload_json from './config/preload' setTimeout(() => { testPreload(() => { - + util.finisheLoadView() }, (per) => { util.updateCharPanel(per) util.updateProgressBar(per) diff --git a/src/scripts/lib/util.js b/src/scripts/lib/util.js index b006d43..57d7c2c 100644 --- a/src/scripts/lib/util.js +++ b/src/scripts/lib/util.js @@ -1,3 +1,4 @@ +const load_view = document.getElementById('load-view') const char_panel = document.querySelectorAll('.blocks .block') const progress_bar = document.getElementById('progress-bar') @@ -78,3 +79,10 @@ export const updateCharPanel = (per) => { export const updateProgressBar = (per) => { progress_bar.children[0].style.width = `${ per * 100 }%` } + +/** + * モーションパート + */ +export const finisheLoadView = () => { + load_view.setAttribute('data-state', 'fin') +}