Welcome to TalkGraphics.com
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Sep 2016
    Location
    Sofia, Bulgaria
    Posts
    53

    Default Re: Question about MouseOver (Effect)

    Hey Roly,
    The screenshot shows which is the example to take a look from the URL
    I didn't realised that its not easily visible in the thread post, sorry

  2. #2
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    927

    Default Re: Question about MouseOver (Effect)

    I tried the following.
    Create a rectangle.
    Give it the required colour.
    Clone it.
    Make the clone 99% transaprent.
    Put your button text on top.
    Group text and transparent rectangle.
    Give the group the name htmlclass=button_sliding_bg
    Soft-group with the background rectangle.
    Add the relevant part of the css from the linked example to the page header code
    Code:
    <style>
    .button_sliding_bg {
        box-shadow: inset 0 0 0 0 #C14800;
        -webkit-transition: all ease 0.8s;
        -moz-transition: all ease 0.8s;
        transition: all ease 0.8s;
    }
    .button_sliding_bg:hover {
        box-shadow: inset 0 100px 0 0 #C14800;
    }
    </style>
    Adapt the 100px if your button has a different height.
    Would have uploaded the example if attachments were working.

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

    Default Re: Question about MouseOver (Effect)

    Slightly different way of doing it than sirans, which I tried. Both work fine.

    Would have uploaded the example if attachments were working.
    Obviously fine at the moment siran. Are you still having issues?
    Attached Files Attached Files
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  4. #4
    Join Date
    Feb 2014
    Location
    Toronto, Canada
    Posts
    792

    Default Re: Question about MouseOver (Effect)

    Thanks Egg and Siran, what would we do if we did not have code guru's like the 2 of you as well as some others on TG.

    Ciao

    Roly

  5. #5
    Join Date
    Sep 2016
    Location
    Sofia, Bulgaria
    Posts
    53

    Default Re: Question about MouseOver (Effect)

    Thanks a lot for the suggestions guys!
    I will try this, once I get home and I will let you know the results.

    Thanks again!

  6. #6
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    927

    Default Re: Question about MouseOver (Effect)

    Hi Egg, didn't try to attach something yet. No need to, your example is a lot easier to use.

 

 

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
  •