daybrush / scenejs

🎬 Scene.js is JavaScript & CSS timeline-based animation library
https://daybrush.com/scenejs
MIT License
2.72k stars 156 forks source link

batch remove properties is not works by frame.remove method #59

Open leeboo opened 4 years ago

leeboo commented 4 years ago

scenejs@1.1.5

the API: ` /**

when i call this method like this: moveableFrame.remove(...['transform', 'height']), can not remove properties

just can remove one by one :moveableFrame.remove('transform') moveableFrame.remove('height')

daybrush commented 4 years ago

@leeboo

remove method's parameter is not array.

this like below:

frame.remove("transform", "translate");

you can juse use one property.

moveableFrame.remove('transform');
moveableFrame.remove('height');