Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions submissions/docs/ease-btn-loading/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ease-btn-loading Spinner Fix

This submission adds a visible spinner animation to the `ease-btn-loading` state.
Previously, the loading button looked disabled but had no visual feedback.

## Usage

```html
<button class="ease-btn ease-btn-primary ease-btn-loading">
<span class="spinner"></span>
Loading...
</button>
14 changes: 14 additions & 0 deletions submissions/docs/ease-btn-loading/demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>EaseMotion Loading Button Demo</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<button class="ease-btn ease-btn-primary ease-btn-loading">
<span class="spinner"></span>
Loading...
</button>
</body>
</html>
22 changes: 22 additions & 0 deletions submissions/docs/ease-btn-loading/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.ease-btn-loading {
position: relative;
display: inline-flex;
align-items: center;
gap: 0.5rem;
opacity: 0.8;
cursor: not-allowed;
}

.spinner {
width: 16px;
height: 16px;
border: 2px solid #fff;
border-top: 2px solid transparent;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}

@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
Loading