Biblioteca de JavaScript puro para rotar a través de oraciones-sustituteteacher. js

Tiempo de ejecución: 30 minutos. Empezar

Autor: danrschlosser
Views Total: 2,013
Sitio oficial: Ir a la web
Actualizado: July 30, 2015
Licencia: MIT

Vista prévia

Biblioteca de JavaScript puro para rotar a través de oraciones-sustituteteacher. js

Descripción

sustituteteacher. js es una biblioteca JavaScript fácil de usar pero totalmente configurable para rotar a través de una matriz de oraciones como un rotador de texto.

Funcionamiento

Descargue e incluya el script sustituteteacher. js en su página HTML.

<script src="path/to/substituteteacher.js"></script>

Añade una matriz de oraciones a las que quieras rotar y protagonizar la rotación usando método Run () .

new Sub([



"A daring JavaScript library for subsitute teachers",



"A hilarious JavaScript library for awesome taglines",



"A sveltee JavaScript library for sweet taglines",



"A badass JavaScript library for sliding fun",



"A JavaScript library for word substitution",


], {/*OPTIONS HERE*/}).run();

Opciones disponibles.

// Id of the injection point for HTML

containerId: "sub"

// Namespace to prepend to classes used internally
 namespace: "sub"

// Number of milliseconds between each change
 interval: 5000

// Number of milliseconds that each step of the animation should take

speed: 200

// True to enable console logging

verbose: false

// True if the first sentence to appear should be random
 random: false

// True if the sentences should be ordered to minimize the number of changes performed
 best: true

Te puede interesar: