Skip navigation
Currently Being Moderated

How do I imitate a mobile app's sliding mechanism?

Aug 2, 2012 8:33 AM

Tags: #jquery #css #html5

I don't even need it to respond to click/drag/sliding. My needs are more basic than that.

 

I need to build an app demo that only requires that various divs slide in and out of view. The trigger for the slide can be either a link in the div itself, or a button in the fixed-position, always-present navigation menu positioned on top of it. I'm assuming jQuery would come in handy here, but I don't know enough to make that call.

 

I've Googled and Googled this subject to death, and cannot find this simple functionality (everything I found does more, too much more, for my needs).

 

Thanks to anyone who can lend a hand.

 

PS: I already build the basic architecture, with a fixed-size, overflow-hidden container. I also have the navigation menu perfectly placed, and the various divs that need to slide in and out as well. All I'm missing is the code to make these elements interact with each other.

 
Replies
  • Currently Being Moderated
    Aug 2, 2012 10:17 AM   in reply to jyeager11

    I guess lots of us are puzzled by what it is you want to do.  A good place to start would be to show us the code you have, and try to explain what you want to happen when the page loads?  Or are you not building the page as a web page but a stand-alone app?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 2, 2012 10:50 AM   in reply to jyeager11

    I suppose you could use CSS3 transitions with jQuery.   See my demo below for details.

    http://alt-web.com/DEMOS/CSS-Animated-Panels.shtml

     

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 2, 2012 10:51 AM   in reply to jyeager11

    So, this is a stand-alone app for the iPhone?  If so, I will let someone else take over.  I have no experience in this arena.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 2, 2012 11:27 AM   in reply to Nancy O.

    Or for something more feature-rich and automated:

    http://www.projectseven.com/products/tools/tpm2/demos/letterbox.htm

     

    By the way, I could not tell at first that your jQuery widget was

    working as the triggers were returning true and the page scrolling down.

     

    Or perhaps the original poster was looking for something like "iSwipe"?

    It is very difficult to deploy in a usable and accessible way, but that

    might be what he is looking for.

     

    --

    Al Sparber - PVII

    http://www.projectseven.com

    The Finest Dreamweaver Menus | Galleries | Widgets

    Since 1998

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 2, 2012 11:32 AM   in reply to Al Sparber
    By the way, I could not tell at first that your jQuery widget was

    working as the triggers were returning true and the page scrolling down.

     

    Which browser, Al?

     

    N

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 2, 2012 12:01 PM   in reply to Nancy O.

    IE9

     

    --

    Al Sparber - PVII

    http://www.projectseven.com

    Dreamweaver Menus | Galleries | Widgets

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points