"Check the snippet for on hover zoom"
Bootstrap 4.1.1 Snippet by anjalish

<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 ----------> <!DOCTYPE html> <html lang="en"> <head> <title>Delhi Institute Of Digital Marketing</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> </head> <body> <br> <br> <br> <br> <section> <div class="container"> <div class="row"> <div class="col-md-4"> <p id="heading" class="lead">Demo 1</p> </div> <div class="col-md-4"> <p id="heading" class="lead">Demo 2</p> </div> <div class="col-md-4"> <p id="heading" class="lead">Demo 3</p> </div> </div> </div> </section> </body> </html>
p#heading { background-color: green; color: white; padding: 10px; width: 250px; height: 250px;} p#heading:hover{ animation: textdivison 1s infinite 0s ease-in; -webkit-animation:textdivison 1s infinite 0s ease-in; transform: scale(1.2);} @keyframes textdivison { 0%{ width:200px; text-size:20px;} 50%{ width:200px; text-size:20px;} 100%{ width:200px; text-size:20px; } }

Related: See More


Questions / Comments: