added fadein intro to mapitems #2235
This commit is contained in:
parent
5fcff3f6dd
commit
1dd82a855e
12
src/App.vue
12
src/App.vue
@ -151,6 +151,8 @@ export default {
|
|||||||
|
|
||||||
<div id="main-content">
|
<div id="main-content">
|
||||||
<MapConcernements>
|
<MapConcernements>
|
||||||
|
<!-- <div class="loading" v-if="mapitems.length === 0">Chargement ...</div> -->
|
||||||
|
<!-- <template v-else> -->
|
||||||
<template v-for="(mapitem,index) in mapitems">
|
<template v-for="(mapitem,index) in mapitems">
|
||||||
<ConcernementMapItem
|
<ConcernementMapItem
|
||||||
v-if="mapitem.concernement.visible && ((map_mode === 'superposition' && mapitem.clone) || !mapitem.clone)"
|
v-if="mapitem.concernement.visible && ((map_mode === 'superposition' && mapitem.clone) || !mapitem.clone)"
|
||||||
@ -158,15 +160,7 @@ export default {
|
|||||||
:mapitem="mapitem"
|
:mapitem="mapitem"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<!-- <template v-if="map_mode === 'superposition'">
|
<!-- </template> -->
|
||||||
<template v-for="(mapitem,index) in superposed_cloned_mapitems">
|
|
||||||
<ConcernementMapItem
|
|
||||||
v-if="mapitem.concernement.visible"
|
|
||||||
:key="mapitem.id"
|
|
||||||
:mapitem="mapitem"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</template> -->
|
|
||||||
</MapConcernements>
|
</MapConcernements>
|
||||||
<div id="content" :class="{'recit-opened':opened_recit}">
|
<div id="content" :class="{'recit-opened':opened_recit}">
|
||||||
<RouterView />
|
<RouterView />
|
||||||
|
@ -83,7 +83,12 @@ body{
|
|||||||
}
|
}
|
||||||
|
|
||||||
#map-concernements{
|
#map-concernements{
|
||||||
|
div.loading{
|
||||||
|
position: absolute;
|
||||||
|
top:50%;
|
||||||
|
left:50%;
|
||||||
|
z-index: 200;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#map-nav{
|
#map-nav{
|
||||||
|
@ -521,6 +521,9 @@ export default {
|
|||||||
superposition_id: this.mapitem.superposition_ids[0] // TODO what to do with multiples superpositions ids
|
superposition_id: this.mapitem.superposition_ids[0] // TODO what to do with multiples superpositions ids
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// fadein intro
|
||||||
|
this.paper_main_object.opacity = (1 + Math.random())*0.001;
|
||||||
|
|
||||||
// the sub items for one concernement
|
// the sub items for one concernement
|
||||||
this.paper_main_object.addChild(this.setPaperContour());
|
this.paper_main_object.addChild(this.setPaperContour());
|
||||||
|
|
||||||
@ -2138,6 +2141,13 @@ export default {
|
|||||||
|
|
||||||
this.paper_main_object.position = this.pos = this.body.position;
|
this.paper_main_object.position = this.pos = this.body.position;
|
||||||
|
|
||||||
|
// fadein intro
|
||||||
|
if (this.paper_main_object.opacity < 9) {
|
||||||
|
this.paper_main_object.opacity = this.paper_main_object.opacity * 1.04;
|
||||||
|
} else{
|
||||||
|
this.paper_main_object.opacity = 1;
|
||||||
|
}
|
||||||
|
|
||||||
this.handlePaperVisibilityOnAfterEnginUpdate()
|
this.handlePaperVisibilityOnAfterEnginUpdate()
|
||||||
|
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user