Forked from Dudley Storey's Pen Pop Art Backgrounds with SVG & Blend Modes.
Created
July 11, 2015 20:50
-
-
Save IgnetStudio/932805d4098fdf47b6bd to your computer and use it in GitHub Desktop.
Pop Art Backgrounds with SVG & Blend Modes
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
<section id="grid"></section> | |
<section id="circles"></section> |
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 { | |
margin: 0; | |
font-size: 0; | |
} | |
svg { | |
display: none; | |
} | |
section { | |
display: inline-block; | |
width: 50%; | |
padding-top: 42%; | |
} | |
section#grid { | |
background-image: | |
url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/checkerboard.svg), | |
url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/grace-kelly.jpg); | |
background-size: 100px 100px, cover; | |
background-blend-mode: overlay; | |
} | |
section#circles { | |
background-image: | |
url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/kelly-brook-as-gilda.jpg), | |
url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/circle-grid.svg); | |
background-size: cover, 100px 100px; | |
background-blend-mode: multiply; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment