Try it
Javascript
Jquery
Angular
Learn Angular
Learn Javascript
Learn Bootstrap
Learn jQuery
Ng-Mousedown-8
Ng-Mousedown-8
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <style type="text/css"> .fade { margin: 0 !important; position: relative; top: 44px; z-index: 9999; -webkit-transition: height 3s ease-in-out; transition: all 3s ease-in-out; height: 0; opacity: 0; } .fade.active { height: 500px; opacity: 1; } </style> </head> <body ng-app=""> <div class="container"> <div class="row well text-center"> <div class="col-md-12"> <br /> <button ng-mousedown="showImage=true" ng-mouseup="showImage=false" class="btn btn-success">Mouse Down & Hold To See Clear Picture</button> <br /> <div class="fade" ng-class="{'active':showImage}"> <img height="450" width="400" src="http://learnit.visrosoftware.com/datafiles/win2.jpg" /> </div> </div> </div> </div> </body> </html>
Output
×
Save This try
Title
Description
<p><code>Ng-Mousedown-8</code></p>