Instantly share code, notes, and snippets.
ruslandevhub-star
/ button + transition and hover
Created
March 14, 2026 12:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| button{ | |
| color: white; | |
| background-color: black; | |
| border: none; | |
| padding: 10px 30px; | |
| transition-property: padding background-color; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Button</title> | |
| <style> | |
| button{ | |
| color: black; | |
| background-color: rgb(255, 94, 0); |