Answers for "svg drop shadow"

-1

box shadow svg css

<img src="https://www.sean-lloyd.com/logo.svg" width="200" class="shadow" />

<style>
.shadow {
  -webkit-filter: drop-shadow( 4px 4px 4px rgba(0, 0, 0, .5));
  filter: drop-shadow( 4px 4px 4px rgba(0, 0, 0, .5));
}
</style>
Posted by: Guest on May-05-2021
0

svg image shadow css

<img src="https://upload.wikimedia.org/wikipedia/commons/c/ce/Star_wars2.svg" 
alt="" class="shadow" width="200">

.shadow {
  -webkit-filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .7));
  filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .7));
  /* Similar syntax to box-shadow */
}
Posted by: Guest on October-29-2021

Browse Popular Code Answers by Language