JSFiddle - React, Tailwind, and code Playground

by lakshmipathi

HTML

<script src="https://unpkg.com/split.js/dist/split.min.js"></script>
 <div class="mynewcontent">
        <div class="split a">A</div>
        <div class="split b">	<iframe class="split b" src="http://webminal.com"></iframe></div>
    </div>

CSS

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  height: 100vh;
  font-size: 26px;
}
.content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-items: center;
  align-items: center;
}
.split {
  width:100%;
  height:100%;
  padding: 1px;
  border: 1px solid;
}
.a {
  background-attachment: fixed;
}
.b {
  background-attachment: fixed;
}
.gutter {
  cursor: e-resize;
  height: 100%;
  background: grey;
}

JavaScript

Split(['.a', '.b'], {
        gutterSize: 5,
        sizes: [20,80]
      });