Skip to content

Commit 88c8807

Browse files
committed
Fixed missing border animation on right bottom side
1 parent b1061e8 commit 88c8807

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@omnedia/ngx-shine-border",
33
"description": "A simple component library to create a container with an animated border.",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"peerDependencies": {
66
"@angular/common": "^17.3.0",
77
"@angular/core": "^17.3.0"
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<div class="om-shine-border" [ngStyle]="style" [ngClass]="styleClass">
2-
<div class="om-shine-border-border"></div>
3-
<ng-content></ng-content>
1+
<div class="om-shine-border-wrapper">
2+
<div class="om-shine-border" [ngStyle]="style" [ngClass]="styleClass">
3+
<div class="om-shine-border-border"></div>
4+
<ng-content></ng-content>
5+
</div>
46
</div>

src/lib/ngx-shine-border.component.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
.om-shine-border-wrapper {
2+
overflow: hidden;
3+
padding: 1px;
4+
}
5+
16
.om-shine-border {
27
--color-from: #ffaa40;
38
--color-middle: #fe8fb5;
@@ -10,7 +15,6 @@
1015
border-radius: var(--border-radius);
1116
border-color: var(--border-color);
1217
position: relative;
13-
overflow: hidden;
1418

1519
.om-shine-border-border {
1620
border: 1px solid transparent;
@@ -26,6 +30,7 @@
2630
will-change: background-position;
2731
border-radius: var(--border-radius);
2832
padding: 1px;
33+
inset: 0;
2934

3035
-webkit-mask: linear-gradient(#fff 0 0) content-box,
3136
linear-gradient(#fff 0 0);

0 commit comments

Comments
 (0)