0.0.14 • Published 4 years ago

yac-carousel v0.0.14

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
4 years ago

YAC Carousel (Yet Another Carousel)

Development

Setup

  1. Clone repository
  2. Run npm install to install all dependencies
  3. Run npm run develop to start local webpack server. This will open test page automatically in the browser and reload on any code changes.

Architecture

The carousel is constructed by combining 2 classes: Container and Item. Various mixins are applied by default to all of these classes in order to extend their functionality and allow for a pluggable architecture.

Take a look at src/carousel.ts to get a better idea how the mixins are applied to the classes and test/page/index.ts to see how they are used to initialize the carousel.

Mixins

MixinClassDescriptionContainer DepsItem Deps
AlignableCoreContainerSet/get align option
AlignableElementContainerAutomatically set align option by examining CSS styles applied to the elementAlignableCore ElementableCore
AutoplayableContainerAllows automatic cycling through itemsIndexableSelect
ControllableContainerSet/get controller instanceItemizableCoreInstance Typeable BoxModelable AlignableCore DirectionableCoreMixin IndexableSelect Nudgeable
CssTransformableTranslateItemSet/get CSS transform: translate(...) style on elementElementableCore
0.0.13

4 years ago

0.0.14

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago