/* eslint-env browser */
.pathicles-story__container(ref="scrollContainer" :data-active-scene="activeScene")
dl.debug.debug-only
div(v-for="(value, key) in info" :key="key")
dt {{ key }}
dd {{ value }}
.canvas-container(ref="canvasContainer")
canvas(ref="canvas" :style="canvasStyles" :width="canvasWidth" :height="canvasHeight")
.scenes
.scene(
v-for='(scene, s) in story.scenes'
:id="'scrolly-story__scene--' + s"
:style="{height: scene.duration * 100 + 'vh'}"
:class="scene.type"
v-bind:key="'scene-' + s"
:data-scene="s"
:data-active="s === activeScene"
:data-status="(s === activeScene) ? 'present' : (s < activeScene) ? 'past' : 'future'")
.scene-content-wrapper.options(v-if="scene.type==='options'" )
.scene-content-wrapper(:id="'scrolly-story__scene-content-wrapper--' + s" v-if="scene.type==='caption'" :style="{opacity: (s === activeScene) ? 1 - sceneProgress * 4 : 1 }")
.scene-main
.title(:data-index="scene.scene_index")
span.pathicles(v-if="scene.title" v-html='scene.title')
.subtitle(v-if="scene.subtitle_1_1")
span.pathicles(v-html='scene.subtitle_1_1')
.subtitle(v-if="scene.subtitle_1_2")
span.pathicles(v-html='scene.subtitle_1_2')
.body
p(v-html='scene.body')