- Notifications
You must be signed in to change notification settings - Fork0
An easy to use Pattern-Maker using Vanilla JS, CSS, HTML
BarbWire-1/ZStack_PatternMaker
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
based on the reuse of a z-stack web-component(vanilla JS, CSS, HTML)
For more details have a look at theDOCUMENTATION
To play with the idea click the button to an example on netlify:
The example below was initialised like:
constelements=` <div></div> <div></div> <div></div> <div></div> <div></div> <div></div>`;constzStackGrid=newZStackGrid({parentId:'container',// requiredrows:6,// optional - default 6columns:6,// optional - default 6alignment:'bottom-right',// optional - default 'default' (same as 'center')mirrorType:'both',// optional - default 'none'content:elements,// optional -default ''});
... and the elements tweaked in CSS
License
MIT LicenseCopyright (c) 2023 BarbWire-1
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE..