Skip to content

Instantly share code, notes, and snippets.

@fgeorges
Last active April 1, 2019 16:27
Show Gist options
  • Save fgeorges/b2f7a007a30395b54715df8c5eaf7dda to your computer and use it in GitHub Desktop.
Save fgeorges/b2f7a007a30395b54715df8c5eaf7dda to your computer and use it in GitHub Desktop.
Testing splitjs
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Split panels</title>
<script type="text/javascript" src="https://unpkg.com/split.js/dist/split.min.js"></script>
</head>
<body>
<div>
<div id="one">content one</div>
<div id="two">content two</div>
<div id="three">content three</div>
</div>
</body>
<script type="text/javascript">
window.onload = function() {
Split(['#one', '#two'], {
sizes: [25, 75],
minSize: 200
});
};
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment