A Pen by Captain Anonymous on CodePen.
Created
June 6, 2019 23:40
-
-
Save CodeMyUI/7f6e280a9c7cf9cc60c24ce8ca9726ea to your computer and use it in GitHub Desktop.
zQXRjq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="card shadow1"> | |
<h2>Shadow with 2 properties</h2> | |
<pre>box-shadow: | |
0 5px 10px rgba(154,160,185,0.05), | |
0 15px 40px rgba(166,173,201,0.2);</pre> | |
</div> | |
<div class="card shadow2"> | |
<h2>Shadow with 1 property</h2> | |
<pre>box-shadow: | |
0 7px 30px <span class="highlight">-10px</span> rgba(150,170,180,0.5);</pre> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background: #fafafa; | |
font-family: Arial, sans-serif; | |
line-height: 1.6; | |
} | |
h2 { | |
margin-top: 0; | |
} | |
.card { | |
padding: 40px; | |
background: #fff; | |
max-width: 360px; | |
border-radius: 20px; | |
margin: 60px auto; | |
} | |
.highlight { | |
font-weight: bold; | |
color: #294; | |
} | |
.shadow1 { | |
box-shadow: 0 5px 10px rgba(154,160,185,.05), 0 15px 40px rgba(166,173,201,.2); | |
} | |
.shadow2 { | |
box-shadow: 0 7px 30px -10px rgba(150,170,180,0.5); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment