@cnbritain/wc-section-featuredeprecated

A section feature

Usage no npm install needed!

<script type="module">
  import cnbritainWcSectionFeature from 'https://cdn.skypack.dev/@cnbritain/wc-section-feature';
</script>

README

wc-section-feature

A section feature

Macro settings

Key Optional Default Description
article false The article to display
alignment true 'left' Which side the image should be on

JS Documentation

SectionFeature

SectionFeature.init()

Initialises the lazyload of images

Kind: static method of SectionFeature

Prerequisites:

  • Node.jsbrew install node
  • Grunt - npm install -g grunt-cli
  • Other prereqs? Python? Virtualenv?

Demo:

Install dependencies:

npm install

Build the things:

npm run sass
npm run js

Python the pythons:

cd demo
virtualenv .
source bin/activate
pip install -r requirements.txt

Start the demo server:

python demo.py