table.scrollable-content tbody tr{
overflow:auto;
display:block;
height:30px;
}
table.scrollable-content tbody tr div{
animation-name: example;
animation-duration: 5s;
}
table.scrollable-content tbody tr:hover div{
animation-name: example2;
animation-duration: 5s;
}
@keyframes example {
from {background-color: rgba(250,0,0,0.5);}
to {
background-color: rgba(250,250,0,0.5);
transform:translateY(-30px)
}
}
@keyframes hovered {
from {background-color: rgba(250,0,0,0.5);}
to {
background-color: rgba(250,250,0,0.5);
transform:translateY(-30px)
}
}
<table class="scrollable-content">
<thead><tr><th>header</th></tr></thead>
<tbody>
<tr>
<td>
<div>
Body with very long text,Body with very long text,<br/>Body with very long text,Body with very long text,Body with very long text,Body with very long text,Body with very long text,Body with very long text,Body with very long text
</div>
</td>
</tr>
</tbody>
</table>