IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   HTML/CSS/JavaScript (https://www.ircforumlari.net/html-css-javascript/)
-   -   Transition efect - 1 (https://www.ircforumlari.net/html-css-javascript/625414-transition-efect-1-a.html)

hAte 10 Ekim 2014 03:53

Transition efect - 1
 
Resimlerde geçiş efekti

<img id="gallery" src="day.gif" style="filter:progid:DXImageTransform.Microsoft.Fa de(duration=2)" />

<script type="text/javascript">

var img=document.getElementById("gallery")

function addtransition(){
img.src="day.gif" //reset image src to original (in case demo is run more than once)
img.filters[0].apply() //capture initial state of image (showing "day.gif")
img.src="night.gif" //change image to "night.gif" (though changes not visible yet due to above capture
img.filters[0].play() //play transition to reveal update to image to "night.gif"
}

</script>

<form>
<input type="button" value="Run Transition" onClick="addtransition()"/>
</form>


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 17:16.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2025 IRCForumlari.Net Sparhawk