##Slider Content
Slider Content is a jQuery Plugin that shows the left and right content once the user started hovering from the image. This task was built to make sure that process style was the same from the Windows 8 Desktop version.
###Installation
Start with the javascript files:
<script src="js/jquery-1.11.1.js" type="text/javascript"></script> <script src="js/SlideRightContainer.js" type="text/javascript"></script>
Add the following code:
$(document).ready(function () { $("#slideTough").ShowLeftContent({ datawidth : 333, }); });
This is for the sliding starting from the left.
Add this code to the
<div class="box-1"> <div class="insider_box"> <ul class="box-2" id="slideTough"> <li><img src="images/5.png" height="166" width="333" alt="" /></li> <li><img src="images/6.jpg" height="166" width="333" alt="" /></li> </ul> <div class="clear"></div> </div><!-- End of insider_box --> </div><!-- box-1 -->
Note: If you want to change the height and width of the images. You need to change the parent class. From the example above, the box-1 class is the parent class.
For Sliding from Top
$(document).ready(function () { $("#slideTough").ShowLeftContent({ datawidth : 333, }); $("#slideUpTough").ShowUpContent({ dataheight: 166 }); });
As you noticed, a new method was added to the document. That is for the sliding top.
HTML Code
<div class="slideUpContainer"> <div class="insider_box_two"> <ul class="box-3" id="slideUpTough"> <li><img src="images/image.png" height="166" width="166" alt="" /></li> <li><img src="images/imageh.png" height="166" width="166" alt="" /></li> </ul> </div> </div><!-- End of slideUpContainer -->
###API
API NAME | Description |
---|---|
datawidth | This property is valid only for the Slider Left Content. To make sure the content that the javascript trying to read will the same as you are customizing. |
dataheight | This property is valid only for the Slider Top Content. To make sure the content that the javascript trying to read will the same as you are customizing. |
###Version
Version 1
###Problems encountered
If you have problems and suggestion with the plugin. You may contact me at [email protected]