Skip to content

Commit

Permalink
style cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lusito committed Jun 7, 2024
1 parent b9dbbda commit 8e26069
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demos/tsx-dom-demo/src/components/MyCustomElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const MyCustomElement = defineCustomElement<MyCustomElementProps>(
clearTimeout(this.timeout);
this.timeout = setTimeout(() => {
this.textContent = text;
}, 1000);
}, 2000);
}

setIntersecting(intersecting: boolean) {
Expand Down
5 changes: 3 additions & 2 deletions demos/tsx-dom-demo/www/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,17 @@ my-custom-element {
my-custom-element::before {
content: "";
position: absolute;
inset: auto 0 0 0;
inset: auto 0 40% 0;
background: #4a8f3c;
height: 20%;
transition: all ease-in-out 10s;
transition: all ease-in-out 6s;
z-index: -1;
opacity: 0.5;
}

my-custom-element.active::before {
height: 100%;
bottom: 0;
background: var(--active-color);
opacity: 0.9;
}

0 comments on commit 8e26069

Please sign in to comment.