"Scaling Hover Images With Jquery Bootstrap 4"
Bootstrap 4.1.1 Snippet by BootstrapTema

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script> <div class="container"><div class="row"> <div class="col-lg-6 offset-lg-3 order-lg-2"> <div class="img-wrapper p-5 text-center bg-success"> <img class="img-fluid rounded-circle" src="http://bootstraptema.ru/logo.png" alt="BootstrapTema Logotype" /> </div> </div> </div></div> <div class="container mt-3 mb-3 text-center"><a href="http://bootstraptema.ru/stuff/snippets_bootstrap/effects/34" target="_blank">BootstrapTema Effects</a></div>
$(document).ready(function() { $(".img-wrapper").find("img").css("transition", "transform 500ms ease-in-out"); $(".img-wrapper").hover( function() { $(this).find("img").css("transform", "scale(1.2)"); }, function() { $(this).find("img").css("transform", "scale(1)"); } ); });

Related: See More


Questions / Comments: