Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jeremyabulencia/unison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

Setting Up

Plugin for making two elements from left and right, meet at the middle of the container

make sure to import jQuery Library on

  1. Create an elemnt for the two elements to merge
  2. Import unison.js Plugin on
    <script src="unison.js"></script>
  1. Create an element with a class name left-element that you want to merge in the middle. Place it inside the element on #1.
  2. Create an element with a class name right-element that you want to merge in the middle. Place it inside the lement on #1.
    <div class="container">
        <div class="left-element"></div>
        <div class="right-element"></div>
    </div>
  1. Call the plugin using the element with the class name on #1
    <script>
        $(document).ready(function() {
            $('.container').unison({
                leftImg:"resources/images/groom.png",
                rightImg:"resources/images/bride.png"
            });
        });
    </script>

About

images meet in the middle on scroll plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published