New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vispan

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vispan

A jQuery plugin for panning website visuals and screenshots by mouse movement in a fixed height

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

VisPan - Visual Pan

A jQuery plugin for panning website visuals and screenshots by mouse movement in a fixed height <div>

Install

Packages are available via Bower and NPM

npm install --save vispan
bower install --save vispan

Use

Include dist/css/vispan.css and dist/js/vispan.js in your page, ensuring jQuery is loaded first.

<!-- css -->
<link rel="stylesheet" href="bower_components/vispan/dist/css/vispan.css">
<!-- jQuery -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<!-- VisPan -->
<script src="bower_components/vispan/dist/js/vispan.js"></script>

Format your website visuals/slides in the following format

<div id="visuals">
  <div><img src="assets/img/web/home.jpg"></div>
  <div><img src="assets/img/web/about.jpg"></div>
  <div><img src="assets/img/web/contact-us.jpg"></div>
</div>

Give #visuals a fixed height

#visuals {
  height: 420px;
}

Finally, call the vispan method in your javascript

$(document).ready(function() {
  $('#visuals').vispan()
})

FAQs

Package last updated on 22 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc