3.0.1 • Published 4 years ago

weltn24-doge v3.0.1

Weekly downloads
56
License
MIT
Repository
github
Last release
4 years ago

doge

This is the Content-Slider of welt.de

Primary used for Images and responsive Picture-Elements - but not limited to it.

Build Status Coverage Status

NPM

TOC

Install

yarn

yarn add weltn24-doge

npm

npm install --save weltn24-doge

Dependency

Usage

// initialize
const contentSlider = new ContentSlider(<options>, <css-classes>, <swiper-options>);

Options (required):

OptionTypeDescription
contentQuerySelector (string)the selector of the swipeable content elements
overlayQuerySelector (string)the selector of the overlay
bemBlockNamestringset the block-part of the bem-style css-class name
swiperBemBlockNamestringset the block-part of the css-class name for swiper-options
extractSliderElementfunctionfunction which returns element to slide
extractCaptionfunctionfunction which returns the description of the slide
extractHashnavTokenfunctionfunction which returns the hashnav token

CSS Classes (optional):

With this parameter you can overwrite the css classes. They are automatic generated with the options-value bemBlockName.

OptionTypeDescription
overlayClassName (string)the overlay element (initial hidden)
overlayModVisibleClassName (string)modifier which indicates if the overlay is visible
navClassName (string)the navigaten bar element
navPositionClassName (string)the position indicator
captionClassName (string)the caption of the current content element
captionModVisibleClassName (string)modifier which indicates if the caption is visible
elementContainerClassName (string)the container for the swipeable content elements
wrapperClassName (string)wrapper around the elements, which will be x/y transformed on swipe
elementClassName (string)the content element
iconClassName (string)icon element
toggleCaptionIconClassName (string)icon to toggle visibility of the caption
prevIconClassName (string)icon to swipe to previous element
nextIconClassName (string)icon to swipe to next element
closeIconClassName (string)icon to close the overlay

Swiper Options:

See Swiper API Docs.

Development

Devstack

IntelliJ

To active IDE support for webflow: Language & Frameworks -> Javascript -> Javascript Language Support: Flow

Dev-Mode

To start the webpack-dev-server:

npm start

The server will be listen to localhost:8080.

To access the server from network:

npm start -- --host 0.0.0.0

URLs

Lint

npm run lint

Test

To run the tests:

npm test

To start the test with file-watcher:

npm run test-dev

Coverage

npm run coverage

To create the HTML Report:

npm run coverage-html-report
open coverage/index.html

Bundle

To bundle the library:

npm run build

Release

To automatically build, tag version, push to GitHub and publish to npm:

npm release
3.0.1

4 years ago

3.0.0

4 years ago

2.3.6

6 years ago

2.3.5

6 years ago

2.3.4

8 years ago

2.3.3

8 years ago

2.3.2

8 years ago

2.3.1

8 years ago

2.3.0

8 years ago

2.2.10

8 years ago

2.2.9

8 years ago

2.2.8

8 years ago

2.2.7

9 years ago

2.2.6

9 years ago

2.2.5

9 years ago

2.2.4

9 years ago

2.2.3

9 years ago

2.2.2

9 years ago

2.2.1

9 years ago

2.2.0

9 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.3.13

9 years ago

1.3.12

9 years ago

1.3.11

9 years ago

1.3.10

9 years ago

1.3.9

9 years ago

1.3.8

9 years ago

1.3.7

9 years ago

1.3.6

9 years ago

1.3.5

9 years ago

1.3.4

9 years ago

1.3.3

9 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

1.0.0-rc.2

9 years ago

1.0.0-rc.1

9 years ago

0.1.6

9 years ago

0.1.2

9 years ago