cardify2
v1.0.3
Published
* **Track:** _Common Core_ * **Curso:** _JS Deep Dive: Crea tu propia librería usando JavaScript_ * **Unidad:** _Producto final_
Downloads
6
Readme
Cardify2
Descripción:
¿Cómo funciona?
Cardify2 es un plugin de jQuery que aplica un efecto de hover a tus imágenes <img>
envolviendolas en una etiqueta <figure>
, obteniendo el atributo alt e insertandolo en el texto de una etiqueta <figcaption
.
Instalación
Para que el plugin funcione primero debes inicializar tu proyecto en la terminal con el comando.
npm init
Descargar cardify2 desde tu terminal con el comando
npm install cardify2
Para que tu proyecto se vea en el navegador enlaza el archivo 'jQuerizado' en tu .html
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
Posteriormente enlaza el siguiente script
<script src="node_modules/cardify2/lib/app.js"></script>