Search
 
SCRIPT & CODE EXAMPLE
 

CSS

change svg color in pseudo element

p:after {
  width: 48px;
  height: 48px;
  display: inline-block;
  content: '';
  -webkit-mask: url(https://gist.githubusercontent.com/mmathys/fbbfbc171233a30e478ad5b87ec4f5d8/raw/cd9219e336b8f3b85579015bdce9665def091bb8/heart.svg) no-repeat 50% 50%;
  mask: url(https://gist.githubusercontent.com/mmathys/fbbfbc171233a30e478ad5b87ec4f5d8/raw/cd9219e336b8f3b85579015bdce9665def091bb8/heart.svg) no-repeat 50% 50%;
  -webkit-mask-size: cover;
  mask-size: cover;
}

.red:after {
  background-color: red;
}

.green:after {
  background-color: green;
}

.blue:after {
  background-color: blue;
}
Comment

PREVIOUS NEXT
Code Example
Css :: target css selector 
Css :: bast css 3d images gallery code 
Css :: Styles for Facebook Feed Smash Balloons 
Css :: react-responsive modal flashes after closing 
Css :: media screen use another css file 
Css :: ancho maximo css 
Css :: step progress bar css 
Css :: Apply "small-caps" to an element 
Css :: remove focous:visible 
Css :: writting css with twin.macro and styled components 
Css :: how To target a particular td in css 
Css :: css borrar 
Css :: div nth child 
Css :: order 
Css :: bouton darkmode 
Css :: time display in css 
Css :: css grid media queries 
Css :: @font-face in css 
Css :: helooo 
Css :: how to change margin radius in css 
Css :: css preprocessor sass 
Css :: hyper text programming language 
Css :: microwave 
Css :: How to loop a javascript array 
Css :: Python Script to Generator QR Code 
Css :: Task #2: Set a linear gradient background for the div element, going from the top left to the bottom right, transitioning from "white" to "green" 
Typescript :: organize imports on save vscode 
Typescript :: typescript onclick event type props 
Typescript :: switch case godot 
Typescript :: python requests firefox headers 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =