Skip to content

Instantly share code, notes, and snippets.

@carlos-sanchez
Created November 13, 2013 04:05
Show Gist options
  • Save carlos-sanchez/7443532 to your computer and use it in GitHub Desktop.
Save carlos-sanchez/7443532 to your computer and use it in GitHub Desktop.
.thing-that-moves {
position: absolute;
width: 100px;
height: 100px;
background: red;
top: 0;
left: 0;
transition: left 0.5s; /* BYO prefixes */
}
@media (min-width: 400px) {
left: 50px;
}
@media (min-width: 600px) {
left: 100px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment