Skip to content

Instantly share code, notes, and snippets.

@MattMcAdams
Created September 2, 2020 19:49
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 MattMcAdams/f10a2714e23311d0f802b4c194a54a48 to your computer and use it in GitHub Desktop.
Save MattMcAdams/f10a2714e23311d0f802b4c194a54a48 to your computer and use it in GitHub Desktop.
CSS Animations with from
@keyframes slide-in-from-left {
from {
transfrom: translateX(-100%);
}
}
.class {
animation: slide-in-from-left .25s ease-in-out;
}
@MattMcAdams
Copy link
Author

animates FROM whatever you specify, TO the default value of the property in CSS! rad for transforms.
-- Adam Argyle

Source: https://twitter.com/argyleink/status/1263145083370520579

triggers on:

  • page load
  • append()
  • etc/fresh DOM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment