Home

Awesome

Zdog docs

Documentation site for Zdog - Flat, round, designer-friendly pseudo 3D engine

zzz.dog

Install

Install dependencies with npm.

npm install

Tasks

Structure

Modules

Modules are re-usable components used throughout the site. A module may consist of template, JS, and CSS files.

modules/
  page-nav/
    page-nav.css
    page-nav.js
    page-nav.hbs

BEM is used for CSS code style.

.page-nav {} /* block */
.page-nav__item {} /* element, child */
.page-nav--dark {} /* modifier */

JavaScript can be initialized for each element with data-js attribute.

<div class="page-nav" data-js="pageNav">
ZdogDocs.pageNav = function( elem ) {
  // do something with elem
};

Made by Metafizzy 🌈🐻