This snippet transforms an instance of a Gallery database into an interactive, scrollable image carousel as seen below. Users can ‘swipe’ on mobile to scroll through the images.
Installation instructions
Step 1: Install the snippet in Super
- Open your site in the Super Dashboard
- Open the ‘Code’ page
- In the ‘Head’ tab, paste the following snippet:
- In the ‘Body’ tab, paste the following snippet:
<link rel="stylesheet" href="https://sites.super.so/snippets/v2/carousel.css">
<script src="https://sites.super.so/snippets/v2/carousel.js"></script>
Step 2: Create Gallery in Notion
This snippet turns gallery databases that are inside a callout block with a brown background into carousels, this is so that you can still use gallery databases as normal when required.
- Create a callout block on your page in Notion
- Give the callout block a brown background
- Drag an existing gallery database inside the brown callout or create a new one inside it
- Head into Super and refresh your site