JSFiddle - React, Tailwind, and code Playground
by Luis Valle
HTML
<table>
<tr>
<td><img src="https://random-image-pepebigotes.vercel.app/api/random-image?g=a44ea57e-a918-46eb-a3d7-2fdd985bfa49" alt="Album Art"></td>
<td>Artist Name</td>
<td>Song Name</td>
<td><button>Play</button></td>
</tr>
<tr>
<td><img src="https://random-image-pepebigotes.vercel.app/api/random-image?g=a44ea57e-a918-46eb-a3d7-2fdd985bfa49" alt="Album Art"></td>
<td>Artist Name</td>
<td>Song Name</td>
<td><button>Play</button></td>
</tr>
<tr>
<td><img src="https://random-image-pepebigotes.vercel.app/api/random-image?g=a44ea57e-a918-46eb-a3d7-2fdd985bfa49" alt="Album Art"></td>
<td>Artist Name</td>
<td>Song Name</td>
<td><button>Play</button></td>
</tr>
<tr>
<td><img src="https://random-image-pepebigotes.vercel.app/api/random-image?g=a44ea57e-a918-46eb-a3d7-2fdd985bfa49" alt="Album Art"></td>
<td>Artist Name</td>
<td>Song Name</td>
<td><button>Play</button></td>
</tr>
<tr>
<td><img src="https://random-image-pepebigotes.vercel.app/api/random-image?g=a44ea57e-a918-46eb-a3d7-2fdd985bfa49" alt="Album Art"></td>
<td>Artist Name</td>
<td>Song Name</td>
<td><button>Play</button></td>
</tr>
</table>
CSS
table {
width: 100%;
border-collapse: separate;
border-spacing: 0 12px;
background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
padding: 20px;
backdrop-filter: blur(10px);
}
/* Floating row effect */
tr {
transform: translateY(0);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
background: rgba(255, 255, 255, 0.95);
}
tr:hover {
transform: translateY(-4px);
background: linear-gradient(45deg, #fff, #f0f9ff);
box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}
/* Fancy cell styling */
td {
padding: 20px;
position: relative;
overflow: hidden;
}
td:first-child {
border-radius: 16px 0 0 16px;
}
td:last-child {
border-radius: 0 16px 16px 0;
}
/* Album art styling */
td:first-child {
width: 90px;
padding: 10px;
}
td:first-child img {
width: 70px;
height: 70px;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
tr:hover td:first-child img {
transform: rotate(5deg) scale(1.1);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
/* Artist name styling */
td:nth-child(2) {
font-weight: 600;
font-size: 1.1em;
color: #2d3748;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
}
tr:hover td:nth-child(2) {
color: #1a365d;
}
/* Song name styling with gradient text */
td:nth-child(3) {
background: linear-gradient(45deg, #3b82f6, #60a5fa);
-webkit-background-clip: text;
color: transparent;
font-weight: 500;
}
/* Animated play button */
td:last-child button {
background: linear-gradient(45deg, #3b82f6, #60a5fa);
color: white;
border: none;
padding: 12px 24px;
border-radius: 12px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
td:last-child button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
background: linear-gradient(45deg,...