Skip to content

asaakumawat/content-zoom-slider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Content Zoom Slider

Jquery plugin to zoom in/out area in browser with slider.

Requirements

Jquery

bootstrap css (for best view)

Usage

You can refer my youtube video, in which i have explained full implementation. click here

  1. Download and include "content-zoom-slider.min.js" file from src folder.
 <script src="../src/content-zoom-slider.min.js"></script>
  1. Initialize plugin
<div id="content">
      Content area
</div>
<div class="zoom-tool-bar">

</div>

<script>
      $(function () {
        $("#content").contentZoomSlider({
          toolContainer: ".zoom-tool-bar"
        });
 });
</script>

Options

<script>
 $("#content").contentZoomSlider({
            toolContainer: ".zoom-tool-bar", // element where slider bar will show
            setp: 25, // step size
            min: 25, // min range
            max: 200, // max range
            zoom: 100, // default zoom size
        });
  </script>

About

Jquery plugin to zoom in/out content

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published