Skip to content

Instantly share code, notes, and snippets.

@withoutwax
Created July 1, 2019 06:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save withoutwax/f9b1177c45b5e13bd1918e4203078e6a to your computer and use it in GitHub Desktop.
Save withoutwax/f9b1177c45b5e13bd1918e4203078e6a to your computer and use it in GitHub Desktop.
Smooth Animation CSS
div {
-webkit-transition: all 2s cubic-bezier(0.165, 0.84, 0.44, 1);
transition: all 2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
div::after {
-webkit-transition: all 2s cubic-bezier(0.165, 0.84, 0.44, 1);
transition: all 2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
div:hover {
color: inherit;
margin-left: 10px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment