我已经应用了这个 jquery
HTML:
<div class="slider sliderclick" style="left: -200px;">
<div class="button-wrap">
<div class="content-wrap" id="button-1">Special Offer Content</div>
<div class="controller">
<div>
<a href="#buttton-1">Special Offer</a>
</div>
</div>
</div>
</div>
</div>
JS:
jQuery(document).ready(function () {
jQuery(".controller a").click(function () {
jQuery('.slider').animate({left:'0px'},1000);
//tried this but not worked
//jQuery(this).parent('.slider').animate({left: '0px'},1000);
return false;
});
});