Skip to content

Commit

Permalink
Added animation to apps and Wizard steps aligned
Browse files Browse the repository at this point in the history
  • Loading branch information
mervekaraman committed Aug 1, 2023
1 parent bfe1918 commit f9c5bf7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
28 changes: 20 additions & 8 deletions resources/assets/js/views/wizard/Finish.vue
Expand Up @@ -14,13 +14,13 @@
{{ translations.finish.recommended_apps }}
</h1>

<div v-for="(item, index) in modules" :key="index" class="sm:col-span-6 mb-3">
<a :href="route_url + '/apps/' + item.slug" class="flex items-center space-x-4 bg-purple-50 rounded-md p-2">
<div v-for="(item, index) in modules" :key="index" class="sm:col-span-6 mb-3 bg-default rounded-md">
<a :href="route_url + '/apps/' + item.slug" class="flex items-center space-x-4 bg-purple-50 rounded-md p-2 sliding-app">
<div class="w-1/4">
<img v-for="(file, indis) in item.files" :key="indis" v-if="file.media_type == 'image' && file.pivot.zone == 'thumbnail'"
:src="file.path_string"
:alt="item.name"
class="rounded-lg object-cover"
<img v-for="(file, indis) in item.files" :key="indis" v-if="file.media_type == 'image' && file.pivot.zone == 'thumbnail'"
:src="file.path_string"
:alt="item.name"
class="rounded-lg object-cover"
/>
</div>

Expand All @@ -42,9 +42,9 @@
</div>
</div>

<div class="absolute w-1/2 right-0 ltr:pl-10 rtl:pr-10 mt-3 hidden lg:flex lg:flex-col">
<div class="absolute w-1/2 ltr:right-0 rtl:left-0 ltr:pl-10 rtl:pr-10 mt-3 hidden lg:flex lg:flex-col">
<div class="flex">
<img :src="image_src" class="absolute top-12 right-2 w-10/12 p-3 -mt-12" alt="Akaunting" />
<img :src="image_src" class="absolute top-12 ltr:right-2 rtl:left-2 w-10/12 p-3 -mt-12" alt="Akaunting" />
</div>

<div class="flex">
Expand Down Expand Up @@ -150,6 +150,18 @@ export default {
</script>

<style scoped>
.sliding-app:hover {
animation: slidingAnimation 600ms ease-out forwards;
}
@keyframes slidingAnimation {
0% { transform: translateX(0); }
40% { transform: translateX(36px); }
60% { transform: translateX(24px); }
80% { transform: translateX(30px); }
100% { transform: translateX(24px); }
}
@media only screen and (max-width: 991px) {
[modal-container] {
height: 100% !important;
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/js/views/wizard/Steps.vue
Expand Up @@ -39,7 +39,7 @@
</li>

<li class="w-1/3">
<span class="ltr:pl-6 ltr:pr-9 rtl:pl-3 flex flex-col">
<span class="ltr:pl-6 rtl:pl-3 flex flex-col">
<span
:class="[{'bg-purple': active_state == 2}]"
class="w-full h-1 bg-gray-300 rounded-xl text-transparent"
Expand Down

0 comments on commit f9c5bf7

Please sign in to comment.