Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Who can help me solve me this bug?

Hello,

I am currently building the following game :

The player guesses the phrase by selecting a letter on the screen's keyboard He gets 5 chances. He needs to guess the phrase before he runs out of hearths. If he guesses 5 wrong letters, he loses the game.

Everything works now except one thing. When the player loses, the letters appears stuck on the "lost screen". I am not sure why this is the case, I have tried to remove them without success so far.

.show { transform: rotate(360deg); color: #000; background-color: #76CE82; transition: .8s cubic-bezier(.6, 1.5, .6, 1); }

After adding transform: rotate(360deg) .... the bug appears

1 Answer

Steven Parker
Steven Parker
229,018 Points

We can probably help after we see the issue in action. Can you post the whole code? A link to a Treehouse workspace or CodePen project would be ideal.