Git Product home page Git Product logo

slidesjs's Introduction

Slides.js

Slideshow vertical y horizontal responsivo, crear una pagina deslizante

Uso y opciones

html

    <div class="container">
        <div class="vt-section current-item-displayed">
            <h1>Section #1</h1>
        </div>
        <div class="vt-section second-item slideshow-container" >
            <div class="slideshow-controls">
                <button class="btn prev-slide">
                    btn-prev
                </button>
                <button class="btn next-slide">
                    btn-next
                </button>
            </div>
            <div class="slideshow">
                <div class="slide">
                    <h1>Item slide 1</h1>
                </div>
                <div class="slide">
                 <h1>Item slide 2</h1>
             </div>
            </div>
        </div>
    </div>

css

    .container{
        height:100vh;
        overflow: hidden;
    }
    // verticalSections
    .vt-section{
        width:100%;
        height:100vh;
        position: relative;
    .row-content{
        display: flex;
        flex-direction: row;
        height:100%;
        .separator{
            width:50%;
        }
        }
    }
    // mainSlideshow
    .slideshow-container{
    // slideShowContent
    .slideshow{
        display: flex;
        flex-direction: row;
        height:100%;
        .slide{
            width:100%;
            height:100%;
        }
    }
}

javascript

// inicializar
new Slides({
    verticalSections:'.vt-section',
    mainSlideshow: '.slideshow-container'
});
Tipo Propiedad Por defecto Descripcion
string verticalSections null clase de los elementos en vertical
string mainSlideshow null clase de los elementos en horizontal
string slideShowContent ".slideshow" clase del contenedor de los elementos a mostrar
number slideTransition 600 tiempo de transicion de un elemento a otro en el slideShowContent en ms
boolean autoPlay false reproduccion automatica del slideShowContent
boolean infinite false transicion infinita de un elemento a otro
string classBtnNext ".next-slide" boton para avanzar en el slideShowContent
string classBtnPrev ".prev-slide" boton para retroceder en el slideShowContent
string verticalTransition "900ms" transicion de un elemento a otro en vertical
string verticalCurrentClass null añadir una clase al elemento actual en vertical
boolean deleteVerticalClass true remueve las clases las clases añadidas de todos los elementos pero no la del emeneto actual
string horizontalCurrentClass null añadir una clase al elemento actual en horizontal
boolean deleteHorizontalClass true remueve las clases las clases añadidas de todos los elementos pero no la del emeneto actual

slidesjs's People

Contributors

zaybit avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.