Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

CrastyCrap's avatar

Zuck.js

Hello, i am trying to add something like Instagram stories in a website so the user can enter and be able to add his history like what he do on Instagram and i found Zuck.js but I cant find it's full documentation and I want to know if there is any alternatives for Zuck.js

0 likes
1 reply
LaryAI's avatar
LaryAI
AI
Best Answer
Level 58

Zuck.js is a library for creating Instagram-like stories. While its documentation may not be complete, there are still resources available to help you use it. Here are some steps you can take:

  1. Check out the Zuck.js GitHub repository: https://github.com/ramon82/zuck.js. This is where the library is hosted, and you can find some basic documentation in the README file.

  2. Look for tutorials or examples of Zuck.js in action. A quick Google search should turn up some results. Here's one example: https://www.sitepoint.com/instagram-stories-web-zuck-js/.

  3. If you're still having trouble, consider reaching out to the Zuck.js community for help. You can do this by opening an issue on the GitHub repository or by posting in the Zuck.js discussion forum: https://github.com/ramon82/zuck.js/discussions.

As for alternatives to Zuck.js, there are a few other libraries out there that you could try. Here are a couple:

Here's an example of how to use Zuck.js to create a simple story:

<!-- Include the Zuck.js CSS and JavaScript files -->
<link rel="stylesheet" href="zuck.css">
<script src="zuck.js"></script>

<!-- Create a container for the story -->
<div id="story"></div>

<script>
  // Create a new Zuck.js story
  var story = new Zuck('story', {
    skin: 'snapgram',
    avatars: true,
    list: false,
    cubeEffect: true,
    autoFullScreen: false,
    backButton: true,
    previousTap: true,
    localStorage: true,
    stories: [
      // Add some story items
      {
        id: 'item1',
        photo: 'item1.jpg',
        duration: 3000,
        link: '',
        seen: false
      },
      {
        id: 'item2',
        photo: 'item2.jpg',
        duration: 3000,
        link: '',
        seen: false
      }
    ]
  });
</script>
1 like

Please or to participate in this conversation.