# Getting Started

## Cloneable:

<https://webflow.com/made-in-webflow/website/dc-splitter>

## Installation

Copy the following script and paste it inside **\<head>** tag of your page (*Image 1*).&#x20;

```javascript
<!-- Splitter by Delta Clan -->
<script defer src="https://cdn.jsdelivr.net/npm/@deltaclan/splitter@1/dist/splitter.js"></script>
```

{% hint style="info" %}
⚡ Splitter is only **0.61kb** gzipped, so don't worry about page performance! 💖\
![](/files/PC2fcXwqn8WvntNuOdyG)
{% endhint %}

<figure><img src="/files/KTxgTJ8ydpzZeL1pb1pN" alt=""><figcaption></figcaption></figure>

## Webflow Attributes

You just need 4 attributes to make this work!

\
1\. `dc-splitter = "splitter"` \
\&#xNAN;*marks the container that will be used as a 'slider'*

2\. `dc-splitter = "before"` \
\&#xNAN;*marks the container that will house the 'before' elements*

3\. `dc-splitter = "after"` \
\&#xNAN;*marks the container that will house the 'after' elements*

*4. `dc-splitter = "handle"`* \
*marks the element that will be the 'handle' of the slider, which will be dragged.*&#x20;

### Splitter Container

**Attribute:** `dc-splitter = "splitter"`

marks the container that will be used as a splitter component. This will house the `before` ,`after` , `handle` elements.

<figure><img src="/files/lzR2H9Xm3UgoZmj7IaCm" alt=""><figcaption></figcaption></figure>

### Before

**Attribute:** `dc-splitter = "before"`

marks the container that will house the 'before' elements

<figure><img src="/files/zv7YcTFNS6wLlXtUztO7" alt=""><figcaption></figcaption></figure>

### After

**Attribute:** `dc-splitter = "after"`

marks the container that will house the 'after' elements

<figure><img src="/files/JV4NqK6e8hPDTvNczOui" alt=""><figcaption></figcaption></figure>

### Handle

**Attribute:** `dc-splitter = "handle"`

marks the element that will be the 'handle' of the slider, which will be dragged.&#x20;

<figure><img src="/files/dTedaRcQ7o8jZiNOwIl3" alt=""><figcaption></figcaption></figure>

### Anatomy of a Splitter

<figure><img src="/files/shVLr43ntYHoTnkdMJ6b" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://deltaclan.gitbook.io/splitter/getting-started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
