How to simplify code pattern that differs whether it's horizontal or vertical

前端 未结 0 565
鱼传尺愫
鱼传尺愫 2021-02-11 03:10

I have two functions that define keyframes to animate in x or y axis. They only differ whether its horizontal or vertical.

function edgeh_prefab(st, y)
   return          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题