Welcome to TalkGraphics.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,826

    Lightbulb A simple Image Hover

    This design arose from an observation that a mouse-over effect requires a MouseOff object must have more than half overlap with a MouseOver object and include a link for a pop-up to occur. I have always assumed this was a self-evident truth.

    If you want an object to pop-up regardless of where the MouseOff object is positioned, you have to use Xara's Web Animation > Mouse-over function AND place the desired objects into a separate Layer.
    My design is not a carousel.

    This design is a half-way house. It avoids the need for many Layers.
    It uses a very simply CSS coding to fade in an image (actually any simple object or Grouped objects) gradually when hovering over a thumbnail.
    If you want fancier reveals, you can refer to my series on available Xara animations through CSS code access.
    The thumbnail can be any simple object or Grouped object, expect for text.

    I have used javascript: ; for the Link but you can use anything you desire.
    I have one thumbnail with no Link but instead I added a separate Xara animation.
    Another has an external Link, so the design is quite versatile.

    CSS - Simple Image Hover.xar

    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

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,504

    Default Re: A simple Image Hover

    Very smooth fades. Nice.

  3. #3
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default Re: A simple Image Hover

    Really like that Acorn, makes a great but simple slideshow. Saved to my Gooodies folder. Thanks.
    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

  4. #4
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default Re: A simple Image Hover

    Here's an example of your xar in use. 36 different images all on the same layer.

    EXAMPLE
    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

  5. #5
    Join Date
    Mar 2009
    Posts
    4,503

    Default Re: A simple Image Hover

    Thanks, Acorn, nice widget! Very useful.

    And nice example, Egg!

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

    Default Re: A simple Image Hover

    Quote Originally Posted by Egg Bramhill View Post
    Here's an example of your xar in use. 36 different images all on the same layer.
    EXAMPLE
    Nicely done Egg.

    The nice thing is it also works on a SmartPhone with a touch acting as a hover+hold so the central image stays open.
    To do the same on the desktop might require CSS of a:hover + .toBeRevealed, a:focus + .toBeRevealed { opacity: 1; }.
    A quick try seems to show it works but the second hover image either works or doesn't, depending on its stacking order in the browser DOM.

    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

  7. #7
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default Re: A simple Image Hover

    I'd noticed the nice fit on smart phones.

    I've amended the link above with the new code. It works well apart from the mouse over on ealier (lower) images fails as you stated. It becomes more an on-click action.
    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

 

 

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
  •