3.1.3 • Published 8 years ago

@cnbritain/wc-common-picture v3.1.3

Weekly downloads
14
License
ISC
Repository
github
Last release
8 years ago

wc-common-picture

Web component that displays elements

Settings

KeyOptionalDefaultDescription
image_cropsfalseA list of images
breakpointstrueNoneThe breakpoints to set the images to
lazyloadtrueTrueWhether the image will lazyload
classtrue''Additional classes to set on the image
alttrueNoneAlt text for the image

JS Settings

common-picture

common-picture.init()

Initialises the loading of images

Kind: static method of common-picture

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