<div class="box green"></div>
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
//animate ".box" from an opacity of 0 to an opacity of 0.5
gsap.fromTo(
  ".box",
  { autoAlpha: 0, x: -200 },
  { autoAlpha: 0.5, x: 200, duration: 1 }
);

External CSS

  1. https://codepen.io/GreenSock/pen/JGaKdQ.css

External JavaScript

  1. https://s3-us-west-2.amazonaws.com/s.cdpn.io/16327/gsap-latest-beta.min.js