Skip to content

Commit

Permalink
Add grid shuffle transition
Browse files Browse the repository at this point in the history
  • Loading branch information
jolaleye committed May 16, 2019
1 parent c72e94a commit 60261d8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/Effects.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="grid">
<transition-group class="grid" tag="div" name="shuffle">
<Effect
v-for="effect in Object.values(this.effects)"
:key="effect.name"
Expand All @@ -8,7 +8,7 @@
>
<component :is="effect.name"/>
</Effect>
</div>
</transition-group>
</template>

<script>
Expand All @@ -33,6 +33,10 @@ export default {
margin: 0 auto;
}
.shuffle-move {
transition: transform 0.75s ease-out;
}
// Responsive styles
@media (min-width: "640px") {
Expand Down

0 comments on commit 60261d8

Please sign in to comment.