Coder Social home page Coder Social logo

animation-scroll's Introduction

animation-scroll

Crea animaciones al hacer scroll

Comenzando 🚀

En el HTML

<h1 id="elementoID">ALGUNA FRASE</h1>

Agregar el script en el HTML

<script src="https://animation-scroll-cdn.agregalel.com/animation-scroll.min.js"></script>

Crea una nueva instancia de la clase AnimationScroll y personalizala

const nuevaAnimacion = new AnimationScroll({
    //elemento al cual se le quiere agregar el efecto
    element: '#elementoID',
    //tipo de efecto
    type: 'string',
    //tiempo del efecto
    scroll: 10000,
    //añade una clase css personalizada para que cada letra pueda hacer lo que se quiera lograr
    class: 'letterMagic',
    //Tiempo de transision del efecto (tiene que coincidir con el tiempo de transicion que se le agrega al estilo,
    //si no se le agrega transition al estilo ignorar o ponerlo en 0)
    transition: '.4'
});

Añade la clase a CSS

.letterMagic {
    color: green;
    font-size: 20rem;
    transition: all .4s ease;
}

Inicializar

Finalmente inicia la animacion con el metodo start

//Inicia la animacion
nuevaAnimacion.start.

Autores ✒️

Este proyecto fue creado por el equipo de Agregalel.com

Licencia 📄

Este proyecto está bajo la Licencia (GNU GENERAL PUBLIC LICENSE) - mira el enlace LICENSE para detalles

Expresiones de Gratitud 🎁

  • Comenta a otros sobre este proyecto 📢

⌨️ con ❤️ por diegosamanez 😊

animation-scroll's People

Contributors

diegosamanez avatar

Watchers

 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.