Pregunta de entrevista de Meta

Animate a given element using JS across any given time frame

Respuestas de entrevistas

Anónimo

22 oct 2018

Apply padding to the element inside a call to setInterval

Anónimo

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

Anónimo

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

Anónimo

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