Welcome to TalkGraphics.com
Results 1 to 7 of 7
  1. #1
    Join Date
    May 2011
    Location
    Pennsylvania
    Posts
    66

    Default Timed slide in/slide out element

    I'm looking for a way to have a small box with text (links) and graphic slide in from the edge of my site at a certain time (say, 5 seconds after the page is fully loaded, or once the user scrolls to a certain depth on the page).

    The slide in box would remain in place until the user clicked an X in the box's top right-hand corner, or any of the links shown on the slide-in box.

    If the user clicked the X, the box would slide back into its original position offscreen.

    Has anyone built a slide-in/slide-out element like this (using a similar timing method)?


    Any advice is greatly appreciated.

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,827

    Default Re: Timed slide in/slide out element

    This is very feasible with jQuery and CSS events: http://api.jquery.com/delay/ with http://api.jquery.com/category/effects/sliding/.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  3. #3
    Join Date
    May 2011
    Location
    Pennsylvania
    Posts
    66

    Default Re: Timed slide in/slide out element

    I was kind of hoping for a simpler method since I'm not yet comfortable with using jquery. I thought there might be a timing trigger built in to XWDP that could launch a simple javascript call for the sliding box to enter/exit the page.

    Or, maybe, XWDP might have a tool already setup for such an effect.

  4. #4
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,827

    Default Re: Timed slide in/slide out element

    Xara is a WYPIWYG tool so any transitions are through Widgets or code.
    There's no timed event other than those in picture galleries (using jQuery).

    It's probably possible purely is CSS3 but you then have browser incompatibilities; jQuery will be the safer route.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  5. #5
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,827

    Info Re: Timed slide in/slide out element

    I forgot this!

    This approach will go part of the way to what you are after:
    • Create your box or a new Layer in the place you want it to stop at.
    • On the MouseOff layer add a clickable shape/button.
      • For this, set its Web Properties > Link > Pop-up layer to the new Layer.
    • Click its Settings... button.
      • Change the transition to Slide in from left.
      • Change the Speed to 5.
      • Untick Close pop-up automatically.
    • Click the OK button twice.
    • Preview
    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  6. #6
    Join Date
    May 2011
    Location
    Pennsylvania
    Posts
    66

    Default Re: Timed slide in/slide out element

    Thanks, Acorn. I'll give it a shot. If it doesn't work I'll do some speed reading on jQuery and see if I can do it that way. Again, I really appreciate your help and advice.

    Kevin

  7. #7
    Join Date
    May 2011
    Location
    Pennsylvania
    Posts
    66

    Default Re: Timed slide in/slide out element

    BTW, I tried doing a simple SWF animated fly-out but I couldn't find any way to trigger it so I just kind of gave up on it.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •