Jump to content

[JavaScript] - Aparitia unui obiect


zL Dark ReturN
 Share

Recommended Posts

Folosind urmatoarea functie, puteti face ca un obiect invizibil sa apara:

function showObject () {
	$("#object").fadeIn(2000); // Obiectul cu id-ul 'object' va aparea cu o animatie de tip fadeIn in 2 secunde.
}

Pentru ca obiectul 'object' initial sa fie invizibil, CSSul lui va arata astfel:

#object {
        display: none;
}
Edited by Cdorsu
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.