effsz
Языки
- TypeScript99,4%
- JavaScript0,6%
3 месяца назад
3 месяца назад
6 месяцев назад
6 месяцев назад
3 месяца назад
3 месяца назад
4 месяца назад
6 месяцев назад
6 месяцев назад
README.md
EffSZ
EffSZ is a web component library that controls the size and visibility of content.
Some features
- lightweight
- zero-dependency
- framework agnostic
Links
Examples
Installation
Type in your terminal:
Quick start
In short each web component should be defined before use. Every module in this library provides such a function
fromuseLimitdefines container that limits count of visible children when it overflows;effsz/limitfromuseScrolldefines container that based on the native scroll, but sets its own scrollbar and shadows which are displayed the same for different browsers;effsz/scrollfromuseSplitdefines container that split its area between slots that can be resized;effsz/splitfromuseMasonrydefines container where one axis uses a typical strict grid layout and the other a masonry layout. It displays the content through slots, and each slotted element must have aeffsz/masonryattribute with its ordinal index and an aspect ratio value defined either using theslotproperty inside theaspect-ratioattribute, or using thestyleattribute;data-effsz-arfromuseExpanddefines container that can be expanded or collapsed to predefined max and min sizes respectively;effsz/expandfromuseCarouseldefines carousel container;effsz/carouselfromuseSlidedefines container that allows to display its contents in the form of a dialog that appears (slides out) from off the screen.effsz/slide
Each function returns object with and observe event handlers to control components behavior.unobserve
For example, you would like to use Split container:
That's all. Enjoy simplicity.