gsap 百分比写法

gsap.to(".elem", {
 keyframes: {
  "0%":   { x: 100, y: 100},
  "75%":  { x: 0, y: 0, ease: 'sine.out'}, // finetune with individual eases
  "100%": { x: 50, y: 50 },
   easeEach: 'expo.inOut' // ease between keyframes
 },
 ease: 'none' // ease the entire keyframe block
 duration: 2,
})

gsap 百分比写法

posted @ 2023-01-04 13:20  newmiracle宇宙  阅读(34)  评论(0编辑  收藏  举报