Vegas
Vegas is a jQuery/Zepto plugin to add beautiful backgrounds and Slideshows to DOM elements.
Install / Use
/learn @jaysalvat/VegasREADME
Vegas – Backgrounds and Slideshows
Vegas is a JavaScript library to add beautiful backgrounds and slideshows to DOM elements. No jQuery required — a jQuery wrapper is available separately.
Install
Use NPM:
npm install vegas
Or download the latest release.
Get started
Vanilla JS
Include vegas.css and vegas.js, then:
<link rel="stylesheet" href="vegas/dist/vegas.css">
<script type="module">
import vegas from 'vegas/dist/vegas.js'
vegas('body', {
slides: [
{ src: 'img1.jpg' },
{ src: 'img2.jpg' },
{ src: 'img3.jpg' }
]
})
</script>
Bundler (Vite, Webpack…)
import 'vegas/dist/vegas.css'
import vegas from 'vegas'
vegas('body', {
slides: [
{ src: 'img1.jpg' },
{ src: 'img2.jpg' },
{ src: 'img3.jpg' }
]
})
For the jQuery wrapper (auto-registers with global $):
import 'vegas/dist/vegas.css'
import 'vegas/jquery'
$('body').vegas({
slides: [
{ src: 'img1.jpg' },
{ src: 'img2.jpg' },
{ src: 'img3.jpg' }
]
})
jQuery wrapper
The jQuery wrapper is provided for backward compatibility with Vegas v2. New projects should use the vanilla JS API.
Include jQuery, then jquery.vegas.js — the plugin registers itself automatically:
<link rel="stylesheet" href="vegas/dist/vegas.css">
<script src="jquery.min.js"></script>
<script src="vegas/dist/jquery.vegas.js"></script>
<script>
$('body').vegas({
slides: [
{ src: 'img1.jpg' },
{ src: 'img2.jpg' },
{ src: 'img3.jpg' }
]
})
</script>
The wrapper is also compatible with Zepto and m4q.
Official website
https://vegas.jaysalvat.com/
Sin City demo
https://vegas.jaysalvat.com/demo/
Documentation
https://vegas.jaysalvat.com/documentation/
Contributing
Please don't edit files in the dist directory as they are generated via Rollup.
You'll find source code in the src directory.
Install dependencies:
npm install
Watch JS changes during development:
npm run dev
Build for production:
npm run build
License
The MIT License (MIT)
Copyright 2026 Jay Salvat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Related Skills
node-connect
339.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.8kCommit, push, and open a PR
