ویژگی transition
بازگشت به صفحه اصلی
بازگشت به صفحه مقاله
دو ستونی
دو سطری
اجرای کد RUN »
<!DOCTYPE html> <html> <head> <style> .div { width: 100px; height: 100px; background: red; -webkit-transition: width 2s linear 1s; /* For Safari 3.1 to 6.0 */ transition: width 2s linear 1s; } .div:hover { width: 300px; } </style> </head> <body> <h1>Using The transition Shorthand Property</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>