Created
February 20, 2017 21:32
-
-
Save sergiu-radu/f3373f1ab277dbcf6568960c4899c2de to your computer and use it in GitHub Desktop.
Creative Dissection Puzzles with CSS and SVG
This file contains hidden or 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
/* Basic styles for pieces */ | |
.clip-container { | |
position: relative; | |
width: 300px; | |
height: 300px; | |
display: inline-block; | |
background-color: rgba(0, 0, 0, 0.1); | |
overflow: hidden; | |
} | |
.clip { | |
position: absolute; | |
width: 300px; | |
height: 300px; | |
background-repeat: no-repeat; | |
background-position: center; | |
transition: 0.5s; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment