Welcome to TalkGraphics.com
Results 1 to 4 of 4

Thread: CSS Reflections

  1. #1
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,904

    Lightbulb CSS Reflections

    Adding this CSS Code:
    Code:
    .reflect {
      -webkit-box-reflect: below 10px linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.4));
    }
    and adding htmlclass="reflect" to your text, images or objects will add a fading reflection under your shape.

    The reflection itself cannot be animated, only its parent.
    I added an anime.js function to try that out.

    The only downside is Firefox has not implemented this webkit feature.
    In that case, you would need to clone, reflect and fade everything directly.

    CSS - webkit-box-reflect.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,524

    Default Re: CSS Reflections

    I am not seeing any reflections but the pink and green animated thingy at the bottom is awesome.

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

    Default Re: CSS Reflections

    Quote Originally Posted by gwpriester View Post
    I am not seeing any reflections but the pink and green animated thingy at the bottom is awesome.
    gary, I've checked across my browsers and FF is the only fail.

    In Website Body Code, you can change rotate: anime.stagger([-360, -180]), to any +/- values you like to get different effects. 360 is a full turn.

    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

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

    Default Re: CSS Reflections

    I can see the reflections in Chrome & Edge but as you state not in FF.
    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

 

 

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
  •