# 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! 💖\
![](https://1629441543-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSog6QspOPhXbBt8q4vfy%2Fuploads%2FSCkXgyq6OPAcCT4d2xOj%2Fimage.png?alt=media\&token=1812de99-50a2-4c54-8659-b93e1c424757)
{% endhint %}

<figure><img src="https://1629441543-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSog6QspOPhXbBt8q4vfy%2Fuploads%2F0cM1U6HygdAjIl98My7M%2Fimage.png?alt=media&#x26;token=c0bbc9bb-b58a-46f1-ab1a-dd17fb549251" 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="https://1629441543-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSog6QspOPhXbBt8q4vfy%2Fuploads%2FtfZsh2RtcYn3ZyJENUe8%2Fimage.png?alt=media&#x26;token=4e9d7dce-ad21-427b-a146-2e69c63ce55f" alt=""><figcaption></figcaption></figure>

### Before

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

marks the container that will house the 'before' elements

<figure><img src="https://1629441543-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSog6QspOPhXbBt8q4vfy%2Fuploads%2FZENW1KBwU7Ef51sE6cBs%2Fimage.png?alt=media&#x26;token=f4572c0f-fcf5-458f-8a2d-ba5b7a53d844" alt=""><figcaption></figcaption></figure>

### After

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

marks the container that will house the 'after' elements

<figure><img src="https://1629441543-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSog6QspOPhXbBt8q4vfy%2Fuploads%2FUfKGo17qWPjflrz25sqL%2Fimage.png?alt=media&#x26;token=eca5e6ff-1c2c-4ff3-9653-6c41802710a3" 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="https://1629441543-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSog6QspOPhXbBt8q4vfy%2Fuploads%2FFQlNSLxGIiMutzFh7KlP%2Fimage.png?alt=media&#x26;token=9519c77f-4a35-4436-b5db-8448321e5406" alt=""><figcaption></figcaption></figure>

### Anatomy of a Splitter

<figure><img src="https://1629441543-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSog6QspOPhXbBt8q4vfy%2Fuploads%2FDEsg6QSbn4IH9e8AB6ei%2FUntitled-2023-04-30-1441.png?alt=media&#x26;token=47739e6e-c3ec-4834-bea4-de27f52bfe6d" alt=""><figcaption></figcaption></figure>
