JSFiddle - React, Tailwind, and code Playground

by nicolas tenorio

HTML

<div data-role="page">

  <div data-role="header" data-position="fixed">

    <h1>Custom Bottom Panel</h1>

    <div class="overlay" id="overlay" style="display:none;"></div>

    <div class="box" id="box">
      <div class="box-inner">
        <a id="close" data-icon="bars" data-iconpos="notext">close</a>
        <iframe src="https://servicios.siur.com.co/ParadaMIO/"></iframe>
      </div>
    </div>
  </div>
  <!-- /header -->
  <div data-role="content">
    <p>Page content goes here.</p>
  </div>
  <!-- /content -->

  <div data-role="footer" data-position="fixed" style="z-index: 1">
    <a id="openpanel" data-icon="bars" data-iconpos="notext">Home</a>
  </div>
  <!-- /footer -->
</div>
<!-- /page -->

CSS

.box {
  position: fixed;
  bottom: -100%;
  left: 0%;
  height: 100%;
  background-color: #DBDBDB;
  width: 100%;
  display: block;
  z-index: 999999;
}

.box-inner {
  position: absolute;
  width: 100%;
  top: 0px;
  bottom: 0px;
  overflow: scroll;
  -webkit-overflow-scrolling: touch;
}

JavaScript

$(function() {

  $('#openpanel').click(function() {
    $('#box').animate({
      'bottom': '0'
    }, 300);
  });

  $('#close').click(function() {
    $('#box').animate({
      'bottom': '-100%'
    }, 300)
  });

});