Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

I need help as to why the buttons are not showing the animation

Below lies my style dimensions for the submit, reset and choose image button:

.Reset {
  border-radius: 25px;
  border: none;
  box-sizing: content-box;
  cursor: pointer;
  padding: 25px 25px;
  color: darkgreen;
  background: indigo;
  font: "comic-sans";
  box-shadow: 0 0 30px 6px rgba(0, 0, 0, 0.5);
  width: 120px;
  height: 50px;
  transition: transform 2s;
}

.Reset: hover {
  opacity: 1;
  transform: scale(2);
}
<div class="Reset"></div>

What stops the transition from not working? What is the solution?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Wrong: .Reset: hover {}

Correct: .Reset:hover {}

See the snippet below.

.Reset {
  border-radius: 25px;
  border: none;
  box-sizing: content-box;
  cursor: pointer;
  padding: 25px 25px;
  color: darkgreen;
  background: indigo;
  font: "comic-sans";
  box-shadow: 0 0 30px 6px rgba(0, 0, 0, 0.5);
  width: 120px;
  height: 50px;
  transition: transform 2s;
}

.Reset:hover {
  opacity: 1;
  transform: scale(2);
}
<div class="Reset"></div>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading