how to dissappear an image after 5s ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

how to dissappear an image after 5s ?

I am creating a simple app so that logo comes first and then dissappears. please answer this.

2nd Jun 2020, 2:37 PM
GOLLAKOTI VENKATA SAI SIVA MANI CHANDU
GOLLAKOTI VENKATA SAI SIVA MANI CHANDU - avatar
6 Answers
+ 4
use animation duration
2nd Jun 2020, 2:42 PM
ÃKR
ÃKR - avatar
+ 2
I would use a css animation or transition @keyframes dis { 0%{ opacity: 1; } 100% { opacity: 0; } div{ animation: dis 5s linear: }
2nd Jun 2020, 2:51 PM
HNNX 🐿
HNNX 🐿 - avatar
+ 1
can't we do it with css?
2nd Jun 2020, 2:48 PM
GOLLAKOTI VENKATA SAI SIVA MANI CHANDU
GOLLAKOTI VENKATA SAI SIVA MANI CHANDU - avatar
+ 1
I would use a css animation or transition @keyframes dis { 0%{ opacity: 1; } 100% { opacity: 0; } div{ animation: dis 5s linear: }
2nd Jun 2020, 3:20 PM
Ajoy Sutradhar
Ajoy Sutradhar - avatar
0
With style.opacity = 0 or or remove ... time.out etc.
2nd Jun 2020, 2:39 PM
JaScript
JaScript - avatar