Skip to content

Commit

Permalink
fix: 온보딩 수정v1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
taewan2002 committed Feb 8, 2024
1 parent 5ef51cb commit 139c5c3
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions pages/onboarding/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@

<!-- (2) 본문 -->
<div class="layout">
<v-icon class="ic_onboarding_1" v-if="page_number===1"/>
<v-icon class="ic_onboarding_2" v-else-if="page_number===2"/>
<v-icon class="ic_onboarding_3" v-else-if="page_number===3"/>
<v-icon class="ic_onboarding_4" v-else-if="page_number===4"/>
<transition name="slide" mode="out-in">
<div :key="page_number" :class="`ic_onboarding_${page_number}`"></div>
</transition>
<!-- <div class="contents" ref="scrollableRef">-->
<!-- <ExampleChatBox-->
<!-- v-for="(chat, idx) in exampleList"-->
Expand Down Expand Up @@ -325,6 +324,20 @@ const updateChatBoxCss = () => {
}
.ic_onboarding_1, .ic_onboarding_2, .ic_onboarding_3, .ic_onboarding_4 {
width: 100%;
height: 120%;
height: 115%;
}
.slide-enter-active, .slide-leave-active {
transition: transform 0.7s ease;
}
/* 새 이미지가 오른쪽에서 들어옴 */
.slide-enter-from {
transform: translateX(100%);
}
/* 이전 이미지가 왼쪽으로 사라짐 */
.slide-leave-to {
transform: translateX(-100%);
}
.slide-leave-from, .slide-enter-to {
transform: translateX(0);
}
</style>

0 comments on commit 139c5c3

Please sign in to comment.