DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cloneable πŸ‡ΉπŸ‡¬
Cloneable πŸ‡ΉπŸ‡¬

Posted on

Video Box Hover

Video Sources

Today we’re gonna be showing How to Code a Video Box with any hover on it.

So here is the example:

<div class=β€œvvh-kit”><img src=β€œhttps://img.youtube.com/vi/QcBkDYlVbF0/maxresdefault.jpg” width=β€œ224”><span class=β€œtitle”>
<div style=β€œfont-family: β€˜Gotham Bold’; margin-top: 3px;”>(REMAKE) QToons! Intro in Radioup V23.15</div></span>
<font size=β€œ1.6” color=β€œgray”> 117 views β€’ 4 months ago</font>
<br><font size=β€œ1.6” color=β€œgray”><i class=β€œmaterial-icons calendar”>calendar_today</i> May 01, 2021</font>
</div>
Enter fullscreen mode Exit fullscreen mode

Setup VVH-Kit

.vvh-kit {
   background: white;
   display: inline-block;
   text-align: left;
   box-shadow: 4.2px 4.2px 7px darkslategray;
   padding: 9px;
   border-radius: 6px;
   max-inline-size: 225px;
   filter: brightness(100%);
   transition: filter 0.07s ease-in;
}

.vvh-kit:hover {
   filter: brightness(80%);
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.