Meta Interview Question

Animate a given element using JS across any given time frame

Interview Answers

Anonymous

Oct 22, 2018

Apply padding to the element inside a call to setInterval

Anonymous

Jan 5, 2019

hey there, i have my interview in a week. really confused by this question. both the question and answer. "Animate a given element using JS across any given time frame" do you mean take the animation interval as an input? "Apply padding to the element inside a call to setInterval" what is the significance of applying padding to answer this question? feel so lost :() thanks

Anonymous

Jan 5, 2019

no, there wasn't a specification of parameters. it was open ended (though my wording isn't exact). adding padding to the HTML element over time would make it appear to move across the screen/animate

Anonymous

Jan 5, 2019

no, there wasn't a specification of parameters. it was open ended (though my wording isn't exact). adding padding to the HTML element over time would make it appear to move across the screen/animate