Skip to content
Closed
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
6 changes: 6 additions & 0 deletions .changeset/salty-news-start.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@alfalab/core-components': patch
'@alfalab/core-components-skeleton': patch
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'@alfalab/core-components': patch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

добавь плиз

---

Изменена анимация с _background_ на _opacity_, теперь производительность анимации выше
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 10 additions & 5 deletions packages/skeleton/src/default.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,20 @@
background: var(--skeleton-default-color);
}

.animate:before {
animation-name: background;
.component.animate {
background: none;
}

@keyframes background {
.component.animate:before {
background: var(--color-light-neutral-translucent-300);
animation-name: opacity-animation-default;
}

@keyframes opacity-animation-default {
0% {
background: var(--color-light-neutral-translucent-100);
opacity: 0.7;
}
100% {
background: var(--color-light-neutral-translucent-300);
opacity: 0.9;
}
}
15 changes: 10 additions & 5 deletions packages/skeleton/src/inverted.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,20 @@
background: var(--skeleton-inverted-default-color);
}

.animate:before {
animation-name: background-inverted;
.component.animate {
background: none;
}

@keyframes background-inverted {
.component.animate:before {
background: var(--color-light-neutral-translucent-300-inverted);
animation-name: opacity-animation-inverted;
}

@keyframes opacity-animation-inverted {
0% {
background: var(--color-light-neutral-translucent-100-inverted);
opacity: 0.7;
}
100% {
background: var(--color-light-neutral-translucent-300-inverted);
opacity: 0.9;
}
}
Loading