Skip to main content

Search and Top Navigation

#5036 closed bug (duplicate)

Opened January 02, 2010 06:18AM UTC

Closed January 02, 2010 03:46PM UTC

Last modified October 11, 2012 09:15PM UTC

removeClass that affects background-color transitions to wrong colour

Reported by: gregwmay Owned by:
Priority: minor Milestone:
Component: ui.effects.core Version: 1.7.2
Keywords: removeClass Cc:
Blocked by: Blocking:

My attached sample page has a CSS-styled black background. I have chained an addClass and a removeClass together to make a highlight effect... the affected class changes the background colour to Red.

On calling removeClass, it transitions to white rather than black, finally switching back to black once the animation is complete.

Additional minor point: I am unable to chain addClass and removeClass using regular addClass().removeClass(), instead having to use the callback function in addClass to call removeClass. Not sure if this is as intended.

Attachments (1)
  • ticket_5036.html (0.9 KB) - added by gregwmay January 02, 2010 06:18AM UTC.

    sample HTML file showing the problem

Change History (4)

Changed January 02, 2010 06:22AM UTC by gregwmay comment:1

My workaround for this is to use the jQuery animate function to manipulate backgroundColor, however using classes is preferred because my application uses variable background colours.

Changed January 02, 2010 03:46PM UTC by scottgonzalez comment:2

resolution: → duplicate
status: newclosed

Duplicate of #4372.

Changed January 02, 2010 03:47PM UTC by scottgonzalez comment:3

component: effects.* (individual effect)effects.core

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:4

milestone: TBD

Milestone TBD deleted