Video results on Recipe Finder are cards with a thumbnail, a title and a view count. Hovering a card for a moment mounts a muted YouTube player under the thumbnail, so you can see the dish being prepared before you decide to open it. Moving the pointer away removes the preview.
Clicking the card opens the video on YouTube in a new tab.
Three requirements shaped the design. The preview must never start by accident. It must not load a third-party frame until someone actually wants it. And it must respect visitors who have asked for less motion. Each requirement maps to a part of the code below.
The pieces
The feature is split into small parts, each doing one job:
Piece Job
RecipeVideoCard.vue The card.…