SkillAgentSearch skills...

Vegas

Vegas is a jQuery/Zepto plugin to add beautiful backgrounds and Slideshows to DOM elements.

Install / Use

/learn @jaysalvat/Vegas
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Vegas – Backgrounds and Slideshows

NPM version

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

View on GitHub
GitHub Stars1.8k
CategoryDevelopment
Updated11d ago
Forks447

Languages

JavaScript

Security Score

80/100

Audited on Mar 17, 2026

No findings