.box-shadow {
box-shadow: 0 3px 5px 0 rgba(0,0,0,0.08);
transition: box-shadow 0.3s ease-in-out;
}
<div class="box">Box</div>
<style>
.box {
width: 300px;
padding: 40px 0;
font: bold 46px sans-serif;
text-align: center;
background: #ccc;
border: 1px solid #999;
-webkit-animation: test 4s infinite; /* Chrome, Safari, Opera */
animation: test 4s infinite;
}
/* Chrome, Safari, Opera */
@-webkit-keyframes test {
50% {box-shadow: 8px 8px 16px #999;}
}
/* Standard syntax */
@keyframes test {
50% {box-shadow: 8px 8px 16px #999;}
}
</style>
Code Example |
---|
Css :: fabric bring to front element top |
Css :: css immediate child |
Css :: css line-height |
Css :: hex color code for tan |
Css :: styling input field tailwind css |
Css :: Setting size for png icon in CSS |
Css :: vertical align text inside div |
Css :: css animations |
Css :: icon circle css |
Css :: flex items not taking full width |
Css :: animate.css not working |
Css :: bootstrap database table cdn |
Css :: onclick css animation |
Css :: css crop image |
Css :: css flex justify self |
Css :: css border |
Css :: border css |
Css :: scrollbar |
Css :: flexbox elements |
Css :: css push div down |
Css :: put a background image in css with absolute layout |
Css :: first-letter css |
Css :: take out side bar in css |
Css :: css video background filter darken |
Css :: contrast color using css |
Css :: highchart font family |
Css :: insert checkbox into combobox css |
Css :: scss a link style |
Css :: text overlay animation css |
Css :: how we use backdrop-filter css property |