Animate elements position not working

I'm trying to implement a grid which you can drag 'n drap elements. I found dragula, which suits my needs exactly! The only thing is, I need the tiles to animate when they move out of the way to let in the one being dragged. (Hope that's clear. :))

I tried adding a transition: all 1s ease-out, but all that did, was animated the opacity.

How can I animate the change of positions?


.container {
  background-color: lightgreen;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
.container * {
  background-color: orange;
  border: 1px solid;
  height: 50px;
  width: 100px;
  transition: all 1s ease-out;
<script src=""></script>
<link href="" rel="stylesheet" />
<div id="left-rm-spill" class="container">
  <div>Anxious Cab Driver</div>
  <div>Thriving Venture</div>
  <div>Such <a href="">a good blog</a>
  <div>Calm Clam</div>



Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.