I am using font-awesome with bootstrap 4 cards, is there anyway to increase the size of the font-awesome icon (bottom right) when I mouse over the button?
in this case <i class="fa fa-folder-open fa-5x"></i>
Here is the HTML
<div class="col-md-3 col-sm-6">
<div class="card card-inverse card-success">
<div class="card-block bg-success">
<div class="rotate">
<i class="fa fa-folder-open fa-5x"></i>
</div>
<center><a class="btn btn-success show" target="1" role="button"><h5 class="text-uppercase">open cases <i class="fa fa-arrow-circle-right fa-1x"></i></h5></a></center>
<h1 class="display-1"><center>7</center></h1>
</div>
</div>
</div>
Here is what it presently looks like
.card:hover .fa { font-size: 6em; }
? – Philiptransform: scale()
css. Both look better adding atransition
for the.fa
so it will animate. – Philipjavascript
, there is no parent selector, to target icon when youhover
over the button – The Process:hover
should work. – Philip