Have a placeholder with + label


I have this one. Have a placeholder with + label selector contain opacity : 0; My problem with this when hover over that element is show abbr tag title. I know is can solve with visibility: hidden; But that way cant do smooth fadein and fadeout transition. Any idea to solve this?

How I can hide that abbr tag to show title? and also work opacity smooth fadein fadeout :D?


Hello , you have to use transition , here is your code with this feature :

input+label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(0, 0);
  transition:opacity 1s ease-in-out;
  opacity: 0;

transition:opacity 1s ease-in-out;

Is totally fine for work but how hide that abbr tag title on hover placeholder and still work with opacity? because if set visibility that cant be good is just show or just not.So with that lost that smooth from transition with opacity what you write. Any idea? Sorry i maybe write bad my question.

sorry, I could’t understand what you want to do , do you want to hide place holder on hovering ?
or do you want to hide the title of abbr tag on hovering ?

I want to hide abbr title attribute from hover to display that. And also work the smooth opacity fadein and fadeout. If set visibility see blow


Is no longer smooth like with opacity no fadeout.


Why do you need to set the visibility? Anyway if you use transition: all instead it should work.

Because this

<abbr title="This will show?">required</abbr>

Will show at placeholder with mouse without visibility: hidden;.


Oh, and for the Adjacent sibling combinator you should really use a space between the combinator and the selectors (might work without but that is the proper syntax, (input + label)

Yes but you are already hiding/showing it using opacity. Anyway again you can just use all for the transition.

All? oh it seems work! But how is that? I set also transition: opacity 1s ease,visibility 1s ease; And not work but with All work why?


Thank you!!!

Because of the change to the visibility property.

But I set above both? Then what know


what is pre definied like above not?

That should work as well.

1 Like

Oh my goood!!! Thank you so much. Lol I such a lot with it.

No problem, happy to help.

I tell you what was my bad. I set transition on input both opacity and visibility. But is must be worked on label as i use + selector and there is not have set transition for visiblity! And I always see with is not work smooth! I do too much things with my layout lol.