div를 클릭하면 jquery에서 오른쪽 슬라이드 왼쪽에서 슬라이드를 가져 오려고합니다. 이것은 내가 사용중인 HTML입니다.왼쪽에서 오른쪽으로 Jquery 슬라이드가 작동하지 않습니다.
<div id="myDiv" style="height: 70px; display: none; background-color:#eee; position: absolute; bottom: 1px; width: 100%">
<img style="margin-left: 9px; top: 8px; position: absolute" id="transparent-image" src="images/hover.png" alt="">
<p class="bi" style="display: inline; color: black; margin-left: 7%; position: absolute">Webbing in an alternative social network. based on intrests and interactions between people all over the world.</p>
그리고 이것은 내가 사용하려고 JQuery와있다. 내가 달성 한 무엇
$(function()
{
$("#toggle").click(function() {
$(".sliding").css("display","none");
//$(".sliding").animate({left:'-240px'});
// Set the effect type
var effect = 'slide';
// Set the options for the effect type chosen
var options = { direction: 'left' };
// Set the duration (default: 400 milliseconds)
var duration = 10000;
$('#myDiv').toggle(effect, options, duration);
});
는 사업부가 onclick을 표시하고이지만, 왼쪽에서 오른쪽으로 아웃 슬라이딩되지 않습니다. 제발 도와주세요. 도와 주셔서 감사합니다. 감사.
jsfiddle 링크도 추가했습니다. http://jsfiddle.net/yLyr599z/
확인이. http://stackoverflow.com/questions/19205370/slide-div-right-to-left-with-jquery?rq=1 – prime
@prime 저를 도와 주셔서 감사합니다. 그러나, 내가보고있는 것은 누군가 바닥에있는 그림을 클릭 할 때, div가 밖으로 튀어 나오고 겹쳐 질 때입니다. –
jsfiddle에서 문제를 재현하지 않는 이유는 무엇입니까? http://jsfiddle.net/ – prime