Ticket #6177 (open bug)
Effects won't animate if there's a > selector
| Reported by: | hobarrera | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | none |
| Component: | ui.effects.* (individual effect) | Version: | 1.8.5 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
With this code:
#contact > .myDiv {
height: 478px;
}
<div id="contact">
<div class="myDiv">
</div>
</div>
var mydiv = ...
mydiv.show('blind', 'slow', function() {....
mydiv is shown, but not animated.
If I change to code to:
#contact > .myDiv {
}
<div id="contact">
<div class="myDiv" style="height: 478px;">
</div>
</div>
var mydiv = ...
mydiv.show('blind', 'slow', function() {....
It animates correctly. This seems to be reproducible every time that the attributes that need to be modified for animating is defined in a CSS selector with a ">". (and it's not limited to blind).
Change History
comment:2 Changed 2 years ago by gnarf
jsFiddled: http://jsfiddle.net/gnarf/r96SF/
Note: See
TracTickets for help on using
tickets.


This is because the animated element has to be wrapped during the animation, so the selector no longer finds the element being animated.