#5036 closed bug (duplicate)
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: |
Description
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)
Change History (5)
Changed 13 years ago by
Attachment: | ticket_5036.html added |
---|
comment:1 Changed 13 years ago by
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.
comment:3 Changed 13 years ago by
Component: | effects.* (individual effect) → effects.core |
---|
sample HTML file showing the problem