Ticket #6177 (open bug)

Opened 3 years ago

Last modified 4 months ago

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:1 Changed 3 years ago by scott.gonzalez

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

comment:2 Changed 2 years ago by gnarf

comment:3 Changed 2 years ago by gnarf

  • Status changed from new to open

I'm not sure if we will ever be able to do anything about this problem. Going to leave it open a while longer...

comment:4 Changed 8 months ago by scott.gonzalez

  • Milestone changed from TBD to 1.10.0

comment:5 Changed 4 months ago by tj.vantoll

  • Milestone changed from 1.10.0 to none
Note: See TracTickets for help on using tickets.