Home  >  Article  >  Backend Development  >  javascript - Please help, why does this paragraph I wrote have no animation effect?

javascript - Please help, why does this paragraph I wrote have no animation effect?

WBOY
WBOYOriginal
2016-10-22 00:14:22862browse

javascript - Please help, why does this paragraph I wrote have no animation effect?

The address requested by AJAX, where it returns 1 if successful and 0 if failed

What I want to do is, if successful, the class thing named shan will shrink upward and then be deleted.

But I wrote it like this, why is there no animation? Three seconds later, the brush was gone. The execution was successful, but why is there no animation effect?

Thank you for your advice

In response to people's request, here is the complete code, thank you for your advice
There is a picture of the location of the class below

javascript - Please help, why does this paragraph I wrote have no animation effect?

javascript - Please help, why does this paragraph I wrote have no animation effect?

Reply content:

javascript - Please help, why does this paragraph I wrote have no animation effect?

The address requested by AJAX, where it returns 1 if successful and 0 if failed

What I want to do is, if successful, the class thing named shan will shrink upward and then be deleted.

But if I write this, why is there no animation? Three seconds later, the brush was gone. The execution was successful, but why is there no animation effect?

Thank you for your advice

In response to people's request, here is the complete code, thank you for your advice
There is a picture of the location of the class below

javascript - Please help, why does this paragraph I wrote have no animation effect?

javascript - Please help, why does this paragraph I wrote have no animation effect?

The code is incomplete and I can’t see it all. I guess it’s a problem with shan.

I found the following problems:
1.volist seems to be a tag in THINKPHP. When I tested your example code alone, I found that the TR and TD in the middle could not be parsed into the DOM normally.
That is, what Shan got there is []

2. I haven’t used the memory before slideUp. After testing, I found that if you use TD, you need to give it a height. Its effect is to retract the top and bottom together toward the middle, and stop when it reaches the height occupied by the font of the content inside. , and then execute the callback.

You can handle it yourself.

That’s slideUp’s fault, right

Hey, this is not scientific, can you make the code more complete

shanThe target element may define a styleheight:100px!important

!important has increased the style priority, so jQuery’s dynamically modified height value is invalid

You can hide the animation first and then the timer disappears. I also wrote this before and it disappeared very bluntly

Thank you, I also encountered this problem

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn