# Slider Project Setup

## Source Folder Overview

![](https://1324544077-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M_gf60EpbkOGwAEcjTJ%2F-M_gkfphUZBHkNFHRS-W%2F-M_glPSFrgvarlJL92uy%2Fimage.png?alt=media\&token=6a6f67a5-365d-4637-95a4-080b211bfc78)

![](https://1324544077-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M_gf60EpbkOGwAEcjTJ%2F-M_gkfphUZBHkNFHRS-W%2F-M_glWuxWwprtT6PnHCx%2Fimage.png?alt=media\&token=d597c34c-c68d-41c3-a6d8-395eb84e5f28)

![](https://1324544077-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M_gf60EpbkOGwAEcjTJ%2F-M_gkfphUZBHkNFHRS-W%2F-M_gl_FkE89T-7rAC7ww%2Fimage.png?alt=media\&token=c2e63625-6f0a-44e4-844c-5a46149c0bfc)

## Initial Files Setup

At first you need to insert required files into your page. Go to plugin folder in the downloaded package and upload “transitionslider” and “assets” folder to your server.

![](https://1324544077-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M_gf60EpbkOGwAEcjTJ%2F-M_gkfphUZBHkNFHRS-W%2F-M_glkTiJODlTMXzVjmh%2Fimage.png?alt=media\&token=78979c37-9c89-455e-a60e-aa8fec7503b2)

![](https://1324544077-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M_gf60EpbkOGwAEcjTJ%2F-M_gkfphUZBHkNFHRS-W%2F-M_gln9AT97NMK7fck0H%2Fimage.png?alt=media\&token=8dbcedfe-8465-4f3e-9910-dd7486ebe25f)

![](https://1324544077-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M_gf60EpbkOGwAEcjTJ%2F-M_gkfphUZBHkNFHRS-W%2F-M_gloV9DXhhNGPMw_--%2Fimage.png?alt=media\&token=1040d845-39fa-4826-bd39-52bb6fa54746)

## Include plugin scripts

```markup
<!-- External libraries style sheet -->
<link rel="stylesheet" href="transitionslider/css/swiper.min.css" />
<link rel="stylesheet" href="transitionslider/css/animate.min.css" />

<!-- Base TransitionSlider style sheet -->
<link rel="stylesheet" href="transitionslider/css/style.min.css" />

<!-- External libraries JS files -->
<script type="text/javascript" src="transitionslider/lib/jquery.min.js"></script>
<script type="text/javascript" src="transitionslider/lib/three.min.js"></script>
<script type="text/javascript" src="transitionslider/lib/Tween.min.js"></script>
<script type="text/javascript" src="transitionslider/lib/swiper.min.js"></script>
<script type="text/javascript" src="transitionslider/lib/webfontloader.js"></script>

<!-- TransitionSlider main JS file -->
<script type="text/javascript" src="transitionslider/js/transitionSlider.min.js"></script>
```

![](https://1324544077-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M_gf60EpbkOGwAEcjTJ%2F-M_gkfphUZBHkNFHRS-W%2F-M_gm8S9i_ggYJgyFxKM%2Fimage.png?alt=media\&token=ee5541ea-db28-4815-a5a8-5f5a276ed166)

## Slider HTML element

Insert following HTML to the `<body>` section. This HTML defines your slider content.

```markup
<!-- transitionslider -->
<div id="slider-wrapper"></div>
```

## Initializing Slider

Insert the following JavaScript after slider HTML.

```markup
<script>
    jQuery(document).ready(function($) {
        $("#slider-wrapper").transitionSlider({
            width: 640,                     // slider standard width
            height: 320,                    // slider standard height
            fullscreen: false,              // slider fullscreen mode
            responsive: false,               // slider device responsive mode
            // more slider options goes here...
            // check slider options section in documentation for more options.

            slides: [
                { src: "assets/images/1.jpg" },    // 1. slide background image
                { src: "assets/images/2.jpg" },    // 2. slide background image
                { src: "assets/images/3.jpg" },    // 3. slide background image
                { src: "assets/videos/4.mp4" }     // 4. slide background video
                // more slide options goes here...
                // check slide options section in documentation for more options.
            ]
        });
    });
</script>
```

![](https://1324544077-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M_gf60EpbkOGwAEcjTJ%2F-M_gkfphUZBHkNFHRS-W%2F-M_gmTCXnh3q_O3d-7l6%2Fimage.png?alt=media\&token=876d83f0-1eba-4bd1-a3ee-0151fed274bc)

Open the index.html file in your browser to preview your new Transition Slider added to your website.
