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

前端 未结 0 1356
隐瞒了意图╮
隐瞒了意图╮ 2021-02-11 03:04

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          


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