How can I make a paragraph visible only after a transition ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I make a paragraph visible only after a transition ?

I made a little square (a div) that grows (with a transition:width). there is a paragraph in it and I want that paragraph to be visible only after the user has put the mouse on it an the little square has grown up. How can I do that ?? Please help

12th Nov 2016, 2:08 PM
seyf
3 Answers
+ 1
to make paragraph visible when mouse over on div element: p{ opacity:0; } div:hover p{ opacity:1; transform:0.2s; } instead opacity,u can use other properties,such as visibillity,font size,etc
12th Nov 2016, 3:37 PM
Dandi Wiratsangka
Dandi Wiratsangka - avatar
0
Thank you so much
12th Nov 2016, 3:46 PM
seyf
0
No prob. Feel free to checkout my codes:)
12th Nov 2016, 3:47 PM
Dandi Wiratsangka
Dandi Wiratsangka - avatar