Horje Website
CSS3 Transition Shorthand Property – Transition shorthand property – CSS Code

CSS3 Transition Shorthand Property – Transition shorthand property

CSS3 Transition Shorthand Property - Transition shorthand property - CSS Code


 
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Example of CSS3 Transition Shorthand Property</title>
  6. <style>
  7. button {
  8.         color: #fff;
  9.         border: none;
  10. padding: 10px 20px;
  11. font: bold 18px sans-serif;
  12. background: #fd7c2a;
  13. -webkit-transition: background 2s ease-in 0s; /* For Safari 3.0+ */
  14. transition: background 2s ease-in 0s; /* Standard syntax */
  15. }
  16. button:hover {
  17. background: #3cc16e;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22.     <button type="button">Hover on me</button>
  23. </body>
  24. </html>



Try Your Self ->



Published:
September 4, 2020
Author:
admin
Category:
CSS Source Code, CSS3 Examples
Views:
18

This article was posted in CSS Source Code, CSS3 Examples and tagged , , . Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Horje © 2011 - 2022