parari
Generate parallax page from html.
Table of Contents
- Bud file for demo. */
"use strict";
var u = require('apeman-util'), mapping = u.mapping, reducing = u.reducing, filtering = u.filtering, path = u.core.path, fs = u.core.fs;
var demoDir = 'doc/demo';
module.exports = { mode: '444', force: true, data: { get pages() { var pages = fs.readdirSync(demoDir) .map(mapping.pathResolveMap(demoDir)) .filter(function (filename) { return fs.statSync(filename).isDirectory(); }) .map(function (dirname) { return fs.readdirSync(dirname) .filter(filtering.patternAcceptFilter(/.html$/)) .map(function (filename) { return { name: path.basename(filename, '.html'), url: path.join(path.basename(dirname), filename) } }) }) .reduce(reducing.concatReduce()); return pages; } } };
Demo
{{#each pages}}
- {{name}}{{/each}}
What's this?
A slideshow generator.
Convert markdown files into html with parallax effect scrolling.
Why this?
It's fast.
parari based on HTML canvas and provides really smooth scrolling.
Demo
Requirements
Documents
Donation
Support this project and others by okunishinishi via gittip.
License
This software is released under the MIT License.