How to create CSS Mirror reflection Text [2022]

by stackdeveloping
17 comments 353 views
CSS Mirror reflection Text


CSS Mirror reflection Text

Hi everyone form our team of Stack developing today we are showing to you a simple CSS trick to make your code looking wonderful. In this post we are making an demonstration of CSS Mirror reflection Text effect, this will be possible only if you use some CSS3 skills.

Since we have choose not use too much resource, for this simple effect, we have used only one file .html, and the style we have included or imported  in the  internal type, by entering the <style> tag.  Also our HTML Document has only one element that has the text which we are about to style it, with this king of effect.

HTML and CSS Code Overall

<!DOCTYPE html>
        <title>Text Reflect</title>
                background: #000;
            .title {
                color: #fff;
                font-size: 100px;
                font-family: sans-serif;
                line-height: 80%;
                font-weight: normal;
                text-align: center;
                margin-top: 13%;
                -webkit-box-reflect: below 2px linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.4));
        <h1 class="title">Text Reflect</h1>

Try It Now

The element that we are styling is <h1 class=”title”>Text Reflect</h1>, selecting by his class named class=’title’.  The reflection style is almost like text-shadow css, but also you can find as text invert css.  Since that the effect looks good on the dark background we have made the Parent element in this document, with background:#000 which mean Dark Absolute.  Then we have styled the title class that in CSS we use the selector with point character so .title{}

We have gave to this element some properties, such as : color – white, the size of the font – 100px(Pixel). The type of font Sans-serif, a font that is rounded font, and its regular font, the distance between lines 80% of the total height of the self element, so the height of H1 element, the weight of  element we gave the normal weight, the distance with top elements like 13% of total height of Body element.

The reflection effect will make it the CSS3 Property  -webkit-box-reflect: below 2px linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.4)); The below means the direction of reflection, 2px means the distance of original and the reflection, and the 3rd attribute is the color which we have made to looks like the half of text is almost transparent.

CSS Mirror reflection Text

CSS Mirror reflection Text

Thank you for reading our posts!

Do like find more about Mobile Gamming Website

Soon you will see post related with:

  1. CSS shine effect
  2. Hamburger menu animation React
  3. tailwind hamburger menu animation

Other examples you may find on:

  1. CSS reflection generator
  2. text reflection css w3schools

You may also like

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.


escort December 22, 2023 - 1:55 pm


entourages December 29, 2023 - 8:12 pm


mouldy December 29, 2023 - 8:56 pm


tapeworms December 30, 2023 - 8:15 am

tapeworms xyandanxvurulmus.Md1e9SLWloTA

desirables January 1, 2024 - 5:23 am

desirables xyandanxvurulmus.aKI9aYkpPLli

sektor benim zaten amin evladi February 2, 2024 - 11:34 am

anal siteleri pompadirha.lsEgzOQrU6vD

watch porn video February 2, 2024 - 11:49 am

bahis porno asillartaklitler.ue8muQFUcbpH

am siteleri February 2, 2024 - 4:32 pm

craft porn hephupx.nzWtmPhVMv4S

porno siteleri February 3, 2024 - 12:05 pm

anal siteleri hepxhupx.vMwOodPRtJrG

sexax February 3, 2024 - 1:00 pm

porno izle juljulfbi.OtAJBdHOYGTp

escort siteleri February 5, 2024 - 7:01 am

bahis siteleri incest category bjluajszz.eeqNG1Mvnask

craft porn February 5, 2024 - 7:20 am

bahis siteleri incest category bxjluajsxzz.x8TDaS9UT3MV

bahis siteleri incest category February 5, 2024 - 7:40 am

bahis siteleri porn sex incest 0qbxjluaxcxjsxzz.3lvoBjGwkE8J

porno izle February 21, 2024 - 8:29 am

porno izle 250tldenemebonusuxx.Khl3ICK2vPa6

food porn February 21, 2024 - 10:37 am

bahis siteleri porn eyeconartxx.W1Ooi6sdCn0v

seks siteleri February 22, 2024 - 4:53 pm

bahis siteleri child porn vvsetohimalxxvc.OzAfvGlAhkMy

watch porn video February 23, 2024 - 8:54 pm

bahis siteleri porn tthighereduhryyy.fowB6vpdrdC


This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More