metafizzy / isotope

:revolving_hearts: Filter & sort magical layouts
https://isotope.metafizzy.co
11.07k stars 1.41k forks source link

Isotype.('remove'... will not remove the element/elements #134

Closed felixknox closed 12 years ago

felixknox commented 12 years ago

Not sure if this is expected behavior.

If I add css transitions to the element (.isotope-item) that has isotope functionality, ex.: transition: box-shadow 0.25s ease-out; -moz-transition: box-shadow 0.25s ease-out; -webkit-transition: box-shadow 0.25s ease-out; -o-transition: box-shadow 0.25s ease-out;

Then I am not able to remove the elements from their container, using el.isotope("remove", list); The remove method ends up in this if statement: if ( $content.filter( ':not(.' + this.options.hiddenClass + ')' ).length ) Where a sort and reLayout happens.

This seems like a similar issue: https://github.com/desandro/isotope/issues/90 (closed).

desandro commented 12 years ago

See #17. Do you have a live URL I can take a look at? Otherwise, try to reproduce this issue in http://jsfiddle.net

felixknox commented 12 years ago

I sent you the URL on e-mail - I can setup a test on jsfiddle during the weekend.

desandro commented 12 years ago

I believe you are missing the proper transition styles. See http://isotope.metafizzy.co/docs/introduction.html#css

If you'd rather not use CSS transitions, then you can switch to using jQuery animation with animationEngine option