从左到右切换问题

时间:2022-08-22 11:33:16

I was trying to have a navigate toggle list from left to right side.If i click the button,the list should come as native android app in css,But the list should slide from left to right.

我试图从左到右有一个导航切换列表。如果我点击按钮,列表应该在css中作为原生Android应用程序,但列表应该从左向右滑动。

$(".logo").click(function()
                {
                    $(".sidebar_list").toggle('slide');
                });

FIDDLE

Example Image:

从左到右切换问题

2 个解决方案

#1


1  

You can use the jquery mobile's slider panel. Check this link:

您可以使用jquery mobile的滑块面板。检查此链接:

http://demos.jquerymobile.com/1.3.0-beta.1/docs/panels/

#2


0  

I got my Expected answer..

我收到了预期的答案..

Here is my code.

这是我的代码。

$(".logo").click(function()
                {
                    $(".sidebar_list").animate({
                    width: 'toggle'
                }, 100)
                });

FIDDLE

#1


1  

You can use the jquery mobile's slider panel. Check this link:

您可以使用jquery mobile的滑块面板。检查此链接:

http://demos.jquerymobile.com/1.3.0-beta.1/docs/panels/

#2


0  

I got my Expected answer..

我收到了预期的答案..

Here is my code.

这是我的代码。

$(".logo").click(function()
                {
                    $(".sidebar_list").animate({
                    width: 'toggle'
                }, 100)
                });

FIDDLE