- Overview
- Documents
animatedModal.js is a jQuery plugin to create a fullscreen modal with CSS3 transitions. you can use the transitions byanimate.css or create yourself their transitions.
Source: joaopereirawd.github.io
 
		Mar 02, 2015 in Lightbox 7540 views
animatedModal.js is a jQuery plugin to create a fullscreen modal with CSS3 transitions. you can use the transitions byanimate.css or create yourself their transitions.
Source: joaopereirawd.github.io
1. INCLUDE CSS AND JS FILES
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.0/animate.min.css"> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="yourPath/animatedModal.min.js"></script>
2. HTML
<!--Call your modal-->
<a id="demo01" href="#animatedModal">DEMO01</a>
<!--DEMO01-->
<div id="animatedModal">
	<!--THIS IS IMPORTANT! to close the modal, the class name has to match the name given on the ID  class="close-animatedModal" -->
	<div class="close-animatedModal"> 
	    CLOSE MODAL
	</div>
    
	<div class="modal-content">
		<!--Your modal content goes here-->
	</div>
</div>
3. JAVASCRIPT
$("#demo01").animatedModal();
4. OPTIONS
| Variable | Default Value | Options | Description | 
|---|---|---|---|
| modalTarget | animatedModal | Costumize your target | |
| color | #39BEB9 | HEX, HSL, RGB, RBA | Define background color | 
| animatedIn | zoomIn | Choose Here | Transition when the modal goes in | 
| animatedOut | zoomOut | Choose Here | Transition when the modal goes out | 
| animationDuration | .6s | seconds | Animation duration | 
| overflow | auto | scroll; hidden; auto; | This makes your modal scrollable or not | 
Tagged with: 
			animatedmodal.js 
			jquery plugin 
			fullscreen modal 
			css3 transitions 
			animate.css 
			transitions 
			modal 
			animatedin 
			animatedout 
	
Related Articles
	
 JS Tutorial
JS Tutorial