I'm having trouble increasing the font size and changing the color on hover for text inside a Bootstrap card. My current code only changes the color without adjusting the font size or implementing any transitions. I don't have much experience with frontend development, so I appreciate any help in pointing out my mistake. Here is the CSS and HTML I am working with:
CSS
#team .card {
border: none;
border-top-left-radius: 25px;
border-bottom-right-radius: 25px;
cursor: pointer;
color: grey;
font-size: 1rem;
transition: font 1s ease-in-out;
}
#team .card:hover {
font-size: 1.3rem;
color: white;
}
HTML
<div class="card bg-dark shadow">
<div class="card-img-overlay d-flex align-items-end justify-content-end">
<h6 class="font-weight-normal">
foo bar
</h6>
</div>
</div>
I'm looking for guidance on how to achieve the desired transition effect.