Skip to main content
Cleaned up formatting
Source Link
James A Mohler
  • 11.1k
  • 15
  • 50
  • 76

I managed to find a solution using css/JqueryjQuery that I'm comfortable with. The original issue: I had to force the visibility to be shown while animating as I have elements hanging outside the area. Doing so, made large blocks of text now hang outside the content area during animation as well.

The solution was to start the main text elements with an opacity of 0 and use addClassaddClass to inject and transition to an opacity of 1. Then removeClassremoveClass when clicked on again.

I'm sure there's an all JqueryjQquery way to do this. I'm just not the guy to do it. :)

So in it's most basic form...

.slideDown().addClass("load"); .slideUp().removeClass("load");

.slideDown().addClass("load");
.slideUp().removeClass("load");

Thanks for the help everyone.

I managed to find a solution using css/Jquery that I'm comfortable with. The original issue: I had to force the visibility to be shown while animating as I have elements hanging outside the area. Doing so, made large blocks of text now hang outside the content area during animation as well.

The solution was to start the main text elements with an opacity of 0 and use addClass to inject and transition to an opacity of 1. Then removeClass when clicked on again.

I'm sure there's an all Jquery way to do this. I'm just not the guy to do it. :)

So in it's most basic form...

.slideDown().addClass("load"); .slideUp().removeClass("load");

Thanks for the help everyone.

I managed to find a solution using css/jQuery that I'm comfortable with. The original issue: I had to force the visibility to be shown while animating as I have elements hanging outside the area. Doing so, made large blocks of text now hang outside the content area during animation as well.

The solution was to start the main text elements with an opacity of 0 and use addClass to inject and transition to an opacity of 1. Then removeClass when clicked on again.

I'm sure there's an all jQquery way to do this. I'm just not the guy to do it. :)

So in it's most basic form...

.slideDown().addClass("load");
.slideUp().removeClass("load");

Thanks for the help everyone.

Source Link

I managed to find a solution using css/Jquery that I'm comfortable with. The original issue: I had to force the visibility to be shown while animating as I have elements hanging outside the area. Doing so, made large blocks of text now hang outside the content area during animation as well.

The solution was to start the main text elements with an opacity of 0 and use addClass to inject and transition to an opacity of 1. Then removeClass when clicked on again.

I'm sure there's an all Jquery way to do this. I'm just not the guy to do it. :)

So in it's most basic form...

.slideDown().addClass("load"); .slideUp().removeClass("load");

Thanks for the help everyone.