+ 4
Little problem in js.
Why is the door not opening on first click? https://code.sololearn.com/WQ0lUGCK1aSC/?ref=app
5 odpowiedzi
+ 3
CSS properties aren't famous for being readable that well. But switching the if cases can work
https://code.sololearn.com/W0VvC3Ultg0F/?ref=app
+ 4
Anton Böhler but on css I added transform:rotateY(0deg)
+ 4
It worked. Thank you Airree ! 😁
Anton Böhler thank you for your solutions. 😊
+ 1
window.onload = function(){
$("#door-face").style.transform = "rotateY(0deg)";
}
add this 😁
+ 1
well when i added it it worked first try 🤷♂️