Here are some additional details - because of unusual restrictions with the YouTube API, I have to push a container off the page in order to create the illusion that the container is hidden.
I accomplish this using the following CSS class:
.my_hide{
margin-left:-9999px;
position:fixed !important;
}
To control the toggling, I utilize JQuery methods
$("player-list_container").removeClass("my_hide")
and $("player-list_container").addClass("my_hide")
.
However, I am facing an issue where the transition between states appears abrupt; the container jumps when the class is removed. I am seeking a way to smoothly transition from one state to another but am unsure how to achieve this.
You can see this behavior demonstrated here
To observe the described behavior, add a video by typing in a search term and then clicking on the Play button below. The issue should be noticeable.