Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8722775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:29:19+00:00 2026-06-13T07:29:19+00:00

does anybody know if there’s a way to create an CSS effect which looks

  • 0

does anybody know if there’s a way to create an CSS effect which looks like the light effect used for iPhone apps? I mean the upper, brighter part of the box.

Thanks,

Ron

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:29:19+00:00Added an answer on June 13, 2026 at 7:29 am

    Unfortunately since using :after and :before selectors on img elements is not covered by the specification, a pure CSS solution might not behave correctly:

    This specification does not fully define the interaction of :before
    and :after with replaced elements (such as IMG in HTML). This will be
    defined in more detail in a future specification.

    In the current versions of Chrome and Firefox, these selectors appear to be ignored and simply don’t work on img elements.

    Here’s a solution with a small HTML wrapper that will fall back to not rendering when the CSS isn’t supported. The container size needs to be specified here, but that could easily be set with JavaScript.

    CSS

    .shine {
        width:223px;
        height:223px;
        position:relative;
        overflow:hidden;
        display:inline-block;
    }
    
    .shine:after {
        width:150%;
        height:100%;
        position:absolute;
        top:-45%;
        left:-25%;
        display:block;
        content:"";
        background:rgba(255,255,255,0.1);
        border-radius:100%;
    }
    

    HTML

    <span class="shine">
        <img src="" alt="">
    </span>
    

    Result

    To make this a little fancier, you could add a gradient background to .shine:after, but it works fine without to demonstrate the idea.

    Here’s a jsFiddle so you don’t have to take my word for it.

    CSS shine effect

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anybody know if there is a WindowsExplorer-like filebrowser which I can include in
Does anybody know if there is a way to create an SQLite database based
Does anybody know if there is a way to display the text value of
Does anybody know if there is a way to get the sender's MAC address
Does anybody know if there is any program able to create beans classes from
Does anybody know if there is a way in Visual Studio 2010 to highlight
Does anybody know if there is a way to increase the size of the
i'm sure there's a way to do this Does anybody know if there is
Does anybody know whether there's a way of finding out whether a particular file
Does anybody know if there is any program able to create annotation based entity

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.