1.1.4 • Published 9 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
9 months ago
1.1.3
10 months ago
1.1.2
10 months ago
1.1.1
10 months ago
1.0.19
10 months ago
1.0.18
10 months ago
1.0.17
10 months ago
1.0.16
10 months ago
1.0.15
10 months ago
1.0.14
10 months ago
1.0.13
10 months ago
1.0.12
10 months ago
1.0.11
10 months ago
1.0.10
10 months ago
1.0.9
10 months ago
1.0.8
10 months ago
1.0.7
10 months ago
1.0.6
10 months ago
1.0.5
10 months ago
1.0.4
10 months ago
1.0.3
10 months ago
1.0.2
10 months ago
1.0.1
10 months ago
1.0.0
10 months ago