Skip to content

fabianjaehnke/ugla-slider

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

UGLA-Slider

using animate() but shall be animated using css-transforms

DEMO
DEMO 1
DEMO 2

Usage: You need a wrapper called "projects" and put your contents each in a "container" <div>
<div id="projects">
<div class="container">
Content Page 1
</div>
<div class="container">
Content Page 2
</div>
<div class="container">
Content Page 3
</div>
<div class="container">
Content Page 4
</div>
</div>
</div>
<div id="slider" style="left:0;"><a class="left" href="#">left</a><a class="right" href="#">right</a></div>

Call uglaSlide() on the wrapper "projects" and pass the configuration object

$(document).ready(function(){
$("#projects").uglaSlide({
'left': $("#slider .left"), //the jQuery Object of the left-link to be clicked
'right': $("#slider .right"), //the jQuery Object of the right-link to be clicked
'menu': $('#projectssubmenu li a') //not implmented yet... for navigation menu
});
});

Contents:

  • ugla-slider.js
  • index.html

About

javascript slider

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%