Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Youtube in React: CSS classes for dynamic styling of the video info box
.video-description {
/* Leave the old content just as it was and add the code below */
p {
line-height: 1.4rem;
margin-bottom: 0;
.collapsed {
max-height: 2.8rem;
overflow-y: hidden;
.expanded {
max-height: none;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.