jquery-bgimg-unsplash
1.0.0 • Public • Published jquery-bgimg-unsplash
Plugin para mostrar imagenes de fondo random, imagenes provenientes de la pagina unsplash
Instalación
npm install jquery-bgimg-unsplash
Necesitas cargar primero jQuery
<script src="/node_modules/jquery/dist/jquery-js"></script>
<script src="/node_modules/jquery-bgimg-unsplash/src/index.js"></script>
Before usign the Unsplash API, you need to register as developer then you must put the CLIENT_ID to be enable to get photos from Unsplash API
window.BgimgUnsplash.setup(clientId);
How it wroks?
<div id="bgimgUnsplash"></div>
$(document).ready(function(){
window.BgimgUnsplash.setup(clientId);
$('#bgimgUnsplash').BgimgUnsplash({
minHeight: '700px',
background-Size: 'contain',
background.Position: 'top center',
background.Color: 'red'
});
});
Package Sidebar
Install
npm i jquery-bgimg-unsplash
Weekly Downloads