Here is some HTML code snippet
<div class="col-sm down-arrow">
<i class="fas fa-arrow-right"></i>
</div>
I am able to accomplish this task using JavaScript
var width = $(window).width();
if (width <= 768) {
$('.down-arrow').find('.fas').removeClass('.fas fa-arrow-right').addClass('.fas fa-arrow-down');
}
else
$('.down-arrow').find('.fas').removeClass('.fas fa-arrow-down').addClass('.fas fa-arrow-right');
However, I prefer to achieve it with CSS as the current solution does not respond effectively when screen size is smaller than 768px
I attempted to use content:"\f063"
font-family:FontAwesome
but unfortunately, it did not produce the desired outcome
Your guidance would be greatly appreciated
Thanks a lot