مثالهای بیشتر از انتقال
بازگشت به صفحه اصلی
بازگشت به صفحه مقاله
دو ستونی
دو سطری
اجرای کد RUN »
<!DOCTYPE html> <html> <head> <style> .div { width: 100px; height: 100px; background: red; /* For Safari 3.1 to 6.0 */ -webkit-transition-property: width; -webkit-transition-duration: 2s; -webkit-transition-timing-function: linear; -webkit-transition-delay: 1s; /* Standard syntax */ transition-property: width; transition-duration: 2s; transition-timing-function: linear; transition-delay: 1s; } .div:hover { width: 300px; } </style> </head> <body> <h1>The transition Properties Specified One by One</h1> <p>Hover over the div element below, to see the transition effect:</p> <div class="div" ></div> <p><b>Note:</b> The transition effect has a 1 second delay before starting.</p> <p><b>Note:</b> This example does not work in Internet Explorer 9 and earlier versions.</p> </body> </html>