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

3/19/2020 12:48:48 AM


2 Answers

New Answer


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; } }


thank you!!😊😊