-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show / Hide behaves badly with <p> tags in .expand div #41
Comments
That is not a bug but a feature :) Se example nr. 3 on the demo page specifically about block elements: |
@tillebeck is right. The text is sliced at the appropriate point, and that is shown initially. When "expanded," that first, sliced, text is hidden while the entire content is shown. @nomaddesign: If we're misunderstanding your report, feel free to re-open this issue or open another with an example of it failing. Thanks! |
Behavior with block element only: Behavior with tags inserted inside block element Now the behavior changes dramatically. The text completely disappears and then reappears and starts expanding. The resulting animation is -jarring- and confusing to viewers because it appears the text has changed NOT expanded. |
For now, my recommendation would be to use a different effect. Either fadeIn/fadeOut or show/hide. Sorry. :( |
If you add paragraph tags inside the .expander element the show / hide shows or hides the entire text..... not just the expanded (read more) text. Is there a way to configure jquery-expander to avoid this? I'm I missing something simple?
Try adding paragraph tags to this and see what I mean:
http://jsfiddle.net/6dW6U/14/
Thanks!!!!
The text was updated successfully, but these errors were encountered: