javascript - Full screen modal in materialize design -


i using materialize design. , implementing full screen modal. width spend in full screen height not set in full screen. have seen 1 link want implement this. if plugin , other solution, let me know. http://joaopereirawd.github.io/animatedmodal.js/

$(document).ready(function(){      // "href" attribute of .modal-trigger must specify modal id wants triggered      $('.modal-trigger').leanmodal();    });
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/css/materialize.min.css">      <!-- compiled , minified javascript -->    <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/js/materialize.min.js"></script>      <a class="waves-effect waves-light btn modal-trigger" href="#modal1">modal</a>      <!-- modal structure -->    <div id="modal1" class="modal" style="width:100%;height:100%">      <div class="modal-content">        <h4>modal header</h4>        <p>a bunch of text</p>      </div>         </div>

i don't want same link(animation). want implement opened modal cover full screen.

in materialize.css file, looked .modal selector , has property called max-height: 70%; that's why inline style height: 100% not working. can override default max-height.

css

.modal {    max-height: 100%; } 

picture

enter image description here

demo

jsfiddle


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -