mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
422 B
21 lines
422 B
1 year ago
|
<button on:click> Click me </button>
|
||
4 years ago
|
|
||
5 years ago
|
<style>
|
||
|
button {
|
||
|
height: 4rem;
|
||
|
width: 8rem;
|
||
|
background-color: #aaa;
|
||
|
border-color: #f1c40f;
|
||
|
color: #f1c40f;
|
||
|
font-size: 1.25rem;
|
||
|
background-image: linear-gradient(45deg, #f1c40f 50%, transparent 50%);
|
||
|
background-position: 100%;
|
||
|
background-size: 400%;
|
||
|
transition: background 300ms ease-in-out;
|
||
|
}
|
||
|
button:hover {
|
||
|
background-position: 0;
|
||
|
color: #aaa;
|
||
|
}
|
||
1 year ago
|
</style>
|