joaopereirawd / animatedModal.js

animatedModal.js is a jQuery plugin to create a fullscreen modal with CSS3 transitions. You can use the transitions from animate.css or create your own transitions.
MIT License
962 stars 207 forks source link

Bounds ? #43

Open daslicht opened 8 years ago

daslicht commented 8 years ago

Hi, is it possible to open the modal not entirely fullscreen ~Marc ?

RichardsonWTR commented 8 years ago

Will be interesting make the modal inside an element, too. For example: make the modal fill the entire body, but not the header

faahim commented 7 years ago

In the Plugin js file, change the value of width from 100% to your desired size and position it with top, left property. :)

rafic20 commented 5 years ago

Thanks for that Fahim, very helpful!

Is there a way to have modals of different sizes? By editing the JS file directly, I now have the modal in the dimensions I want. But for some types of secondary content, I want something that's smaller, more like a tooltip. I don't want that showing at the same size as my "primary" modals.

Any help would be appreciated!