Opened 14 years ago
Closed 14 years ago
#3975 closed bug (invalid)
Problem in opacity animation
Reported by: | ibrahim | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.3.2 |
Component: | effects | Version: | 1.3.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
if you hovering in & out couple of times in the image in my example and then stop you will see the opacity is taking value other then it should be example in attached file
Attachments (1)
Change History (2)
Changed 14 years ago by
Attachment: | example.zip added |
---|
comment:1 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Here's the basics of the test code:
$('.hover').hover(function() { $(this).find('img').stop().fadeOut('slow'); }, function() { $(this).find('img').stop().fadeIn('slow'); });
The .stop()
method is leaving the opacity at its value where the animation was stopped, which then causes the fadeIn/Out to resume at that point on later calls. As documented, if you want to have it go to the final animation point, pass in true
for the {{{goToEnd}} argument.
Note: See
TracTickets for help on using
tickets.
example