Name: infinite-scroll-docs
Owner: Metafizzy
Description: ? Documentation for Infinite Scroll
Created: 2017-06-08 18:15:09.0
Updated: 2018-04-30 20:18:37.0
Pushed: 2018-04-23 12:54:21.0
Homepage: null
Size: 135
Language: HTML
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Documentation for Infinite Scroll, the JavaScript library for automatically adding next pages.
Building these docs requires npm and Bower.
install
r install
gulp
- build the production site, concatenate CSS and JS, minify JSgulp dev
- build the site, but use separate CSS and JS files for debuggingassets/
- files that get copied into build/
build/
- where static site gets builtcontent/
- page contentcss/
- boilerplate CSSdata/
- Site and logo data files.js/
- boilerplate JSmodules/
- See Modules belowmodules/demos
- Demo modulestasks/
- Gulp tasks to build the sitetemplates/
- page templatesModules 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.
e-nav {} /* block */
e-nav__item {} /* element, child */
e-nav--dark {} /* modifier */
JavaScript can be initialized for each element with data-js
attribute.
class="page-nav" data-js="page-nav">
js
niteScrollDocs.['page-nav'] = function( elem ) {
do something with elem
By Metafizzy