How can I show and hide my text in ccs?or make them animate??? | SoloLearn: Learn to code for FREE!

0

How can I show and hide my text in ccs?or make them animate???

3/19/2020 12:48:48 AM

Amir.Taha

2 Answers

New Answer

+1

You can make the text animate in css, but "show-and-hide" is actually translated as "toggle" which can't be done with CSS. You can show an hidden text using the CSS property "display:block" and also hide a visible text using "display:hidden" but you can't "toggle" text...JavaScript is needed for that. another known way which is not an actual toggling but function like one is to use the @keyframe method. @keyframe toggle { 0%{ display:hidden } 100%{ display:block; } }

0

thank you!!😊😊