UNPKG

panelsnap

Version:

A JavaScript plugin that provides snapping functionality to a set of panels within your interface.

38 lines (32 loc) 815 B
<!doctype html> <html lang="en-us"> <head> <meta charset="utf-8"> <title>PanelSnap - basic demo</title> <meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui"> <link href="https://fonts.googleapis.com/css?family=Lato:100,300" rel="stylesheet"> <link href="../../style.css" rel="stylesheet"> <script src="../../panelsnap.js" defer></script> <script> document.addEventListener("DOMContentLoaded", function () { new PanelSnap(); }); </script> <style> section:nth-child(2) { min-height: calc(100vh + 200px); } </style> </head> <body> <section> <h1>First</h1> </section> <section> <h1>Second</h1> </section> <section> <h1>Third</h1> </section> </body> </html>