Domanda di colloquio di Meta

Animate a given element using JS across any given time frame

Risposte di colloquio

Anonimo

22 ott 2018

Apply padding to the element inside a call to setInterval

Anonimo

5 gen 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

Anonimo

5 gen 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

Anonimo

5 gen 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