Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

background where the item can be put #233

Closed
flozero opened this issue Dec 5, 2018 · 6 comments
Closed

background where the item can be put #233

flozero opened this issue Dec 5, 2018 · 6 comments
Labels

Comments

@flozero
Copy link

flozero commented Dec 5, 2018

Hello i would like to background color where item can be put into the the grid.

I tried to background the muuri container but you see all free space not only where the item can be drop.

None of the class expose can be use.

.muuri-item {
  background: red;
}
.muuri-item-shown {
  background: red;
}
.muuri-item-hidden {
  background: red;
}
.muuri-item-positioning {
  background: red;
}
.muuri-item-dragging {
  background: red;
}

.muuri-item-releasing {
  background: red;
}

Any idea of how i can do that ?

Thanks for your work and for help

@niklasramo
Copy link
Collaborator

Sorry to say, but with default configuration you can only drop items on top of other items. So there is no empty space where you can drop the item.

@flozero
Copy link
Author

flozero commented Dec 5, 2018

I understand but there is no way to color every blanc part inside item but not the right blanc space ?

@niklasramo
Copy link
Collaborator

I'm not fully understanding what you mean 🤔

@flozero
Copy link
Author

flozero commented Dec 6, 2018

what i want to achieve is you have the grid. You drag an item when you choose a place, every items move to let the place. This space that is now empty i would like to color him like a placeholder, then end position

@niklasramo
Copy link
Collaborator

Oh, you mean like a drag placeholder? There's an open issue about that here: #8

@flozero
Copy link
Author

flozero commented Dec 6, 2018

i am not sure but i think this is it yeah ! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants