Skip to content

Instantly share code, notes, and snippets.

@sergiu-radu
Created February 20, 2017 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergiu-radu/f3373f1ab277dbcf6568960c4899c2de to your computer and use it in GitHub Desktop.
Save sergiu-radu/f3373f1ab277dbcf6568960c4899c2de to your computer and use it in GitHub Desktop.
Creative Dissection Puzzles with CSS and SVG
/* 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