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

CSS

personal project ease in on hover speed??

Hi,

I am creating a website and need some help with hover speed effect. I have created a button with the text 'discover more' inside. I have a diamond that appears on hovering the button. But the speed is to fast.... i know u can use ease in effect. but this does not seem to be working. Could someone have a look please????

The website is http://harryjbeckwith.co.uk/theme/services.html

Much appreciated!!!

1 Answer

"Transitions" between display: block and display: none are instantaneous. They can't have a duration. Instead transition the opacity property from 0 to 1 instead.

.show-me {
  transition: opacity 1s ease;
  opacity: 0;
}

.click:hover .show-me {
  opacity: 1;
}

You can see a list of animatable css properties here.