How to fix this problem just using HTML and CSS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to fix this problem just using HTML and CSS?

I want to add a text "Right!" Inside the cube and want to show it when the box is right under the big circle... How to do that? Just write me that part of the code please. https://code.sololearn.com/WPcqfmI5Pr98/?ref=app

27th Mar 2020, 2:08 AM
Sohanur Rahman
Sohanur Rahman - avatar
1 Answer
+ 2
Sohanur Rahman hi, You could put your text in html, Then in CSS ,in your animation at 0% and 50% you set a color property with opacity at 0 and when 100% you set it at 1. Ex: color: rgba(0,0,0,0) //at 0 and 50% color:rgba(0,0,0,1)//at 100% In rgba,the 'a' is for canal alpha which rule opacity. Another solution would be to give the same color to text and backgroundcolor at 0 and 50% and change to the one you'd like at 100%.
27th Mar 2020, 3:39 AM
EmmanueLZ.
EmmanueLZ. - avatar