Skip to content

Commit

Permalink
Fixed the gradient on the lite-youtube lazy load thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
bradygm committed Mar 7, 2024
1 parent 953664a commit 7882793
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion assets/lite-youtube/lite-yt-embed.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ lite-youtube {
}

/* gradient */
lite-youtube::before {
/* lite-youtube::before {
content: '';
display: block;
position: absolute;
Expand All @@ -22,6 +22,16 @@ lite-youtube::before {
padding-bottom: 50px;
width: 100%;
transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
} */
lite-youtube::before {
content: '';
display: block;
position: absolute;
top: 0;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
height: 40%;
width: 100%;
transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
}

/* responsive iframe with a 16:9 aspect ratio
Expand Down

0 comments on commit 7882793

Please sign in to comment.