1.1.4 • Published 8 months ago
stories-fs v1.1.4
Stories-FS
Package that adds "instagram stories" to your site
With Stories-FS, you can create professional-quality visual content.
How install?
- npm i stories-fs
- Add files: HEAD - stories-fs-style.css Scripts - stories-fs.js
- Init
new StoriesFs(".stories-fs", {
slidesPerView: {
320: {
count: 4,
},
960: {
count: 6,
},
1280: {
count: 12,
},
},
});
Example HTML:
<div class="stories-fs">
<div class="stories-fs__wrapper">
<div class="stories-fs__track">
<div class="stories-fs__slide">
<div class="stories-fs__preview">
<img src="./images/1.jpg" alt="" />
</div>
<div class="stories-fs__sub-wrapper">
<div class="stories-fs__inner">
<img src="./images/1.jpg" alt="" />
</div>
<div class="stories-fs__inner">
<img src="./images/2.jpg" alt="" />
</div>
<div class="stories-fs__inner">
<img src="./images/3.jpg" alt="" />
</div>
</div>
</div>
</div>
</div>
</div>
Parameters
Name | type | Default | Value | Description |
---|---|---|---|---|
slidesPerView | object | - | - | The number of slides at a given screen resolution |
navigation | object | false | elBtnPrev | elBtnNext | Replacement of default slider control buttons |
swipeOnSlide | boolean | true | true | false | Add the ability to switch slides by swipe on the slide |
autoPlayFullScreen | boolean | false | true | false | Toggles the slide when completing the item count |
storiesMode | boolean | true | true | false | If false the progress bar is hidden |
aspectRatioPreview | boolean | true | true | false | Aspect-ratio for preview off |
speedStory | number | 3000 | - | Viewing time of one story |
speedAnimNextSlide | number | 32 | - | Speed animation next slide. low value = high speed scroll |
1.1.4
8 months ago
1.1.3
8 months ago
1.1.2
8 months ago
1.1.1
8 months ago
1.0.19
9 months ago
1.0.18
9 months ago
1.0.17
9 months ago
1.0.16
9 months ago
1.0.15
9 months ago
1.0.14
9 months ago
1.0.13
9 months ago
1.0.12
9 months ago
1.0.11
9 months ago
1.0.10
9 months ago
1.0.9
9 months ago
1.0.8
9 months ago
1.0.7
9 months ago
1.0.6
9 months ago
1.0.5
9 months ago
1.0.4
9 months ago
1.0.3
9 months ago
1.0.2
9 months ago
1.0.1
9 months ago
1.0.0
9 months ago