timelinemax

TimelineMax doesn't seem to work for me. Do timelines require any additional config beyond, target, time, and attribute value?

淺唱寂寞╮ 提交于 2019-12-13 05:47:19
问题 So I'm working on porting an animation of clouds from css animation to a js animation using TimelineMax. however, I've always found myself problems with Timeline[Max/Lite]. This time is quite the same. I've gone over the docs, but can't seem to find the problem. is there anything i'm missing from the arguments I pass or other parts of my code. any suggestions help as this is preventing me from moving forwards. thanks! just to clarify, the animation is means to be a looped animation clouds

GSAP with React.js

▼魔方 西西 提交于 2019-12-11 17:38:01
问题 I encounter this problem. I use GSAP in react project to do some complicated animation. I want to ask that how can I clear the style applied on the DOM whenever the component re-render. It still keeps the old state which is the tl.reverse(). I set it it to Null again and re-define but i doesnt work. I'm also new to react. Below is code. Hope anyone can help componentDidMount () { this.menu_init() this.cta_animation_init() // this.cta_animation_active() this.hover_effect() $(window).on('scroll