Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS3 transition Property</title> <style> button { font-size: 16px; font-weight: bold; padding: 10px 20px; background: #fd7c2a; border: 3px solid #dc5801; -webkit-transition-property: background 2s, border 2s; /* For Safari 3.0+ */ transition: background 2s, border 2s; /* Standard syntax */ } button:hover { background: #3cc16e; border-color: #257644; } </style> </head> <body> <button type="button">Place mouse on me</button> </body> </html>