> For the complete documentation index, see [llms.txt](https://deltaclan.gitbook.io/splitter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://deltaclan.gitbook.io/splitter/getting-started.md).

# 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>
