React and GSAP in GSAP Posted July 12, 2017 In case anybody's still looking for a super simple example, here's a basic component with an animated gsap title: import React, { Component } from 'react'; import { TweenMax } from 'gsap'; export default class AnimatedTitle extends Component { componentDidMount() { TweenMax.to(this.title, 3, { x: 300 }); } render() { return ( <h1 ref={h1 => { this.title = h1; }} >Animated Title</h1> ); } } 2
React and GSAP
in GSAP
Posted
In case anybody's still looking for a super simple example, here's a basic component with an animated gsap title: