-
-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for animation via the ngAnimate module
This breaks the "close" promise into two promises, "closing" and "closed". The former is resolved once the modal begins closing, but the close animation may still be in progress. The latter is resolved once ngAnimate has finished animating the modal's removal from the DOM. fixes #93
- Loading branch information
1 parent
d02610b
commit 6eeb39d
Showing
24 changed files
with
10,387 additions
and
3,458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#overlay { | ||
position: fixed; | ||
left: 25%; | ||
top: 25%; | ||
padding: 25px; | ||
border: 2px solid black; | ||
background-color: #ffffff; | ||
width: 50%; | ||
height: 50%; | ||
z-index: 100; | ||
} | ||
#fade { | ||
position: fixed; | ||
left: 0%; | ||
top: 0%; | ||
background-color: black; | ||
-moz-opacity: 0.7; | ||
opacity: .70; | ||
filter: alpha(opacity=70); | ||
width: 100%; | ||
height: 100%; | ||
z-index: 90; | ||
} | ||
|
||
#custom-modal.ng-enter { | ||
transition: opacity .5s ease-out; | ||
opacity: 0; | ||
} | ||
#custom-modal.ng-enter.ng-enter-active { | ||
opacity: 1; | ||
} | ||
#custom-modal.ng-leave { | ||
transition: opacity .5s ease-out; | ||
opacity: 1; | ||
} | ||
#custom-modal.ng-leave.ng-leave-active { | ||
opacity: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,8 @@ | ||
<style type="text/css"> | ||
#overlay { | ||
position: fixed; | ||
left: 25%; | ||
top: 25%; | ||
padding: 25px; | ||
border: 2px solid black; | ||
background-color: #ffffff; | ||
width: 50%; | ||
height: 50%; | ||
z-index: 100; | ||
} | ||
#fade { | ||
position: fixed; | ||
left: 0%; | ||
top: 0%; | ||
background-color: black; | ||
-moz-opacity: 0.7; | ||
opacity: .70; | ||
filter: alpha(opacity=70); | ||
width: 100%; | ||
height: 100%; | ||
z-index: 90; | ||
} | ||
</style> | ||
<div id="overlay" ng-show="display"> | ||
This is a custom modal. The angular-modal-service doesn't depend on bootstrap, you | ||
can use any modal you want. | ||
<a href ng-click="close()">Close</a> | ||
<div id="custom-modal"> | ||
<div id="overlay"> | ||
This is a custom modal. The angular-modal-service doesn't depend on bootstrap, you | ||
can use any modal you want. | ||
<a href ng-click="close()">Close</a> | ||
</div> | ||
<div id="fade"></div> | ||
</div> | ||
<div id="fade" ng-show="display"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.