Comments (1)
Sorry if this is a bit late but I figured it out:
You have to also use closingClass to specify a smaller witdth for the modal. Then you also have to include the animation so that it actually fades out when you close it.
Example (I just placed this inside the angular-fancy-modal.css file:
.mini-modal-open {
position: fixed;
top: 50px;
width: 70%;
-webkit-animation: fancymodal-in 0.5s;
animation: fancymodal-in 0.5s;
}
.mini-modal-close {
width: 70%;
-webkit-animation: fancymodal-out 0.5s;
animation: fancymodal-out 0.5s;
}
Then use them in your controllers:
$fancyModal.open({
templateUrl: '/public/views/modal.html',
scope: $scope,
openingClass: "mini-modal-open",
closingClass: "mini-modal-close",
controller: function($scope, $window){
from angular-fancy-modal.
Related Issues (17)
- creating directive
- memory leak ? Multiple dialogs exist on close HOT 2
- Error: Syntax error, unrecognized expression HOT 1
- suggestion: promise when closed HOT 5
- Close modal when a modal is opened from that modal HOT 1
- Error when loading without JQuery HOT 1
- publish to npm HOT 6
- Focus not blocked
- Usage with ngRepeat HOT 1
- creating confirm example
- Error when setting angularjs "$compileProvider.debugInfoEnabled(false);"
- bower.json "main" section references missing css file HOT 1
- on close function HOT 3
- Closing modal results in overlay not dissapearing and error HOT 1
- Uncaught TypeError: Cannot read property '$destroy' of undefined HOT 5
- scope with controllerAs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-fancy-modal.