What it does?
You can use this library to create ‘stories’ like effect on your website or mobile apps.
This idea is inspired by how WhatsApp has copied the idea from Snapchat Stories.
So, anyone is free to use ‘Stories’ feature on their website – something which flips automatically onto next media-item – whether it is photo/video.
Basically, it is making us more lazy – generally, we swipe from left to right when we want to view photos/videos in a particular album. Now, ‘stories’ is doing it for us, by automatically switching to next item in the collection. It is as simple as that.
- Initialize a collection of items.
- Set transition time to 2 seconds.
- Start with first item, view for 2 seconds and go to next item. Repeat this until you are at end of the collection.