Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
216,013 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.