Welcome to TalkGraphics.com
Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Aug 2022
    Location
    İzmir / Türkiye
    Posts
    3

    Default About Scrolling Picture with Touch

    Hello,

    I'm a Xara Web Designer Premium user. You know, mobile users are using fingers for horizontal flowing images. So I want to add a widget (with 5-6 pictures) for it. But I didn't find any widget sample from Online Content Catalogue. A lot of widgets including horizontal flowing the images with touch the "arrows" or touch the "numbers". But I don't want to touch any arrow or number. I want to only dragging the picture. Thanks.

  2. #2
    Join Date
    Apr 2018
    Location
    Barnes, London
    Posts
    952

    Default Re: About Scrolling Picture with Touch

    Quote Originally Posted by notrino View Post
    Hello,

    I'm a Xara Web Designer Premium user. You know, mobile users are using fingers for horizontal flowing images. So I want to add a widget (with 5-6 pictures) for it. But I didn't find any widget sample from Online Content Catalogue. A lot of widgets including horizontal flowing the images with touch the "arrows" or touch the "numbers". But I don't want to touch any arrow or number. I want to only dragging the picture. Thanks.
    There are a variety of different sliders in the demo here > https://initiostar.co.uk/demo/zNivo/ - you must have v18 or above to be able to use the touch scroll/swipe feature.

    I have adapted the Simple Slider to have a horizonal scroll without controls (for a mobile/ tablet). The slider does have two variants that transition from desktop to mobile; you could delete the desktop variant or retain it.

    Simple Slider - Horizontal Scroll >Simple-Slideshow-Page-Scrolling Template.xar

    For the slider, you would create a separate Xara file with the first page filename anything other than "index" > you publish this document to the same directory as your main website.

    Thereafter you call it through a placeholder (same dimensions as your slider page) using an iframe:

    <iframe title="slider-crossfade" src="simple-slider-crossfade.htm" name="simple-slider-crossfade" height="100%" width="100%" style="border:none;"></iframe>

    The source (src) is the same filename as that given to your first page in the slider.

    When you preview the slider in your main website (it will suggest it cannot find it), but once both documents are published to the same directory it correctly appears.

    There are lots of different ways to do this and many have been previously covered.
    Gary
    www.initiostar.co.uk


    Xara Designer Pro+ and Xara Designer Pro X 19.0.1.65946 DL x64 Feb 7 2023

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,830

    Info Re: About Scrolling Picture with Touch

    Faith, not quite sure why you want this only for mobile touch but try: http://acorn.xara.hosting/HScroll/.

    It should not display any scrollbars but it is at the moment and some images are missing.
    I am wrestling with it - sorry.
    UPDATE - now working - the images are just numbers here but it works with anything really.

    On a non-touch device you click on the visible image and then use the left/right arrows.

    Basically, I have an H-scrolling site with side-by side images, one per page, and the viewer is a Placeholder IFRAME that is set for one image/page width.

    For the images:

    • Create a Scrolling Horizontal Website with pages 640x640px with no page gap.
    • Fill each page with a 640x640ps image or anything you want.
    • Name the first page, slide01 [ignore the Xara complaint]; label the next slide02 and so on.

    For the viewing page:
    • Add a Placeholder 640x640px with Body code:

    Code:
    <div id="container">
    <iframe src="slide01.htm"></iframe>
    </div>
    • Include styling;

    Code:
    <style>
    :root {
      --wide: 640px;
      --deep: 640px;
    }
    #container {
      width: var(--wide);
      height: var(--deep);
      overflow-y: hidden;
    }
    iframe {
      width: var(--wide);
      height: calc(var(--deep) + 20px);
    }
    </style>
    • The extra 20px for the IFRAME height gets rid of the vertical scrollbar.
    • Scrolling is needed so you cannot set scrolling="no".
    • The Xara Placeholder size is not important but it is sensible to set it to the expected size.
    • For your different image dimensions, change the :root values, --wide & --deep; all images ideally should be the same width.
    • If you have differing image sizes, centre and scale on the page to fit.

    Acorn
    Last edited by Acorn; 08 August 2022 at 08:52 AM.
    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

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

    Info Re: About Scrolling Picture with Touch

    I have included the detail to drive the presented image from the parent page.
    The IFRAME needs name="slider" included.
    The Links are set to open in 'slider' and as they are invoking a scrolling website, they need to invoke Xara anchoring, e.g., slide06 has a page address of slide01.htm#xr_page_slide06.

    Not relevant to the OP ask but useful to embellish a fuller static slider.

    Both these files need to be exported/published to the same folder:

    If you just Preview them, they are placed in separate folders by Xara.

    Acorn
    Last edited by Acorn; 08 August 2022 at 11:28 AM.
    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
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,918

    Default Re: About Scrolling Picture with Touch

    Works well but only with a tap:
    LINK
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  6. #6
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,830

    Default Re: About Scrolling Picture with Touch

    Quote Originally Posted by Egg Bramhill View Post
    Works well but only with a tap:
    LINK
    Egg, I like it but the OP asked for a drag.

    I'm guessing that you split a next and previous call across the middle of each image.

    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

 

 

Tags for this Thread

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
  •